LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-27-2009, 09:49 AM   #1
joykiranr
LQ Newbie
 
Registered: May 2005
Location: bangalore
Posts: 7

Rep: Reputation: 0
Can't chage the time zone from PDT to IST!! pls help.


Hey,
My RedHat box replies for 'date' command as
[root@test ~]# date
Mon Jul 27 20:05:58 PDT 2009
Where in i want to change the timezone from PDT to IST.
Did as below.
[root@test~]# ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime

[root@test~]# ll /etc/localtime
lrwxrwxrwx 1 root root 33 Jul 27 20:09 /etc/localtime -> /usr/share/zoneinfo/Asia/Calcutta
[root@test~]# date
Mon Jul 27 20:10:31 PDT 2009

Tried rebooting the box, changing to other time zones,delete/rename America/Los_Angeles timezone but PDT time zone does not get changed.

Pls help me in getting the IST..

Thanks in advance for the support...
--Joy
 
Old 07-27-2009, 10:05 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
#su
#setup
 
Old 07-27-2009, 10:50 AM   #3
chigurh8
Member
 
Registered: Jul 2009
Distribution: Ubuntu, Gentoo
Posts: 102

Rep: Reputation: 18
You can also get this done by doing what you did, except instead of making a link, copy it directly:

Code:
cp Calcutta /etc/localtime
Code:
cp /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
can't you? I know I've done this using Gentoo before, and possibly Linux From Scratch ...

Last edited by chigurh8; 07-27-2009 at 11:04 AM.
 
Old 07-28-2009, 12:35 AM   #4
joykiranr
LQ Newbie
 
Registered: May 2005
Location: bangalore
Posts: 7

Original Poster
Rep: Reputation: 0
No luck..!!

Hi Amani and chigurh8,
Thanks for your quick responses..

I did ran system-config-date utility and set the zone to Asia/Calcutta.. and did copied the timezone to /etc/localtime. But still it appeares at PDT.

Even I am unable to sych the time to hwclock with command hwclock --systohc

is there any other workaround??
 
Old 07-29-2009, 02:40 AM   #5
joykiranr
LQ Newbie
 
Registered: May 2005
Location: bangalore
Posts: 7

Original Poster
Rep: Reputation: 0
found it

Hi,
I could find the cause..
It was happening because of login shell /etc/csh.login
The entry there was
setenv TZ = PDT
edited that to IST,its working fine now.

Thanks to all for the help and support.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting time and time zone altogether properly in Slack-current, KDE4 spaceballs Slackware 3 04-20-2011 05:15 AM
Time zone sets inappropriate time during Ubuntu 9.04 installation TristanDee Ubuntu 6 07-24-2009 06:42 AM
Time skew of 580 min when I set my time zone in Gentoo scooter2 Linux - Newbie 1 03-05-2009 10:27 AM
What is the point of using PDT time zone in an international site? hkl8324 General 2 12-28-2008 05:55 AM
Setting System Time: kernel in wrong time zone warrenweiss Linux - General 7 05-15-2004 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration