LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-02-2008, 06:12 AM   #1
am_mitra
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Question Problems setting time and time zone in RH Linux


Hello,

I am on redhat linux advanced server 4.

I am in Time-zone "Asia/Calcutta", and that is what I am trying to set my timezone to. I have tried everything that google-search provided, but nothing is working for some reason.

Right now, the 'date' shows: Tue Dec 2 16:30:02 UTC 2008

ie. timezone=UTC. Whereas I expected it to be IST (Indian Standard Time).


So, I tried tzselect -> Asia ->India and I agreed to:

Local time is now: Tue Dec 2 16:31:05 /usr/share/zoneinfo/Asia/Calcutta 2008.
Universal Time is now: Tue Dec 2 16:31:05 UTC 2008.


I do not know why "Universal Time" is showing as the localtime.


The 'date' command again gave: Tue Dec 2 16:31:43 UTC 2008

Second, I ran dateconfig command, and set it to Asia/Calcutta and UTC off, but still the same result.

My /etc/sysconfig/clock file:
[root@ps2844 ~]# cat /etc/sysconfig/clock
ZONE="Asia/Calcutta"
UTC=false
ARC=false


I also setup a sym-link from /usr/share/zoneinfo, and yet no result.

[root@ps2844 ~]# ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 Dec 2 10:16 /etc/localtime -> /usr/share/zoneinfo/Asia/Calcutta


[root@ps2844 ~]# date
Tue Dec 2 16:39:50 UTC 2008

Let me know what else can I try to move this to the correct timezone.
 
Old 12-03-2008, 09:09 PM   #2
tuxtutor
LQ Newbie
 
Registered: Dec 2008
Distribution: Solaris, CentOS
Posts: 4

Rep: Reputation: 0
Stupid question but did you reboot after changing the time zone info? I think that is a requirement. Not positive though I just remember needing to reboot when I altered my timezone settings.
 
  


Reply

Tags
date, time


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:15 AM
Cannot set time/date to other time zone than UTC (Kubuntu) jamangold Ubuntu 1 12-23-2005 06:42 PM
Display the date and time from another time zone lothario Linux - Software 4 07-31-2004 04:27 PM
Setting System Time: kernel in wrong time zone warrenweiss Linux - General 7 05-15-2004 04:25 PM


All times are GMT -5. The time now is 06:48 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration