LinuxQuestions.org
Register a domain and help support LQ
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 06-06-2005, 06:16 AM   #1
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Rep: Reputation: 15
timezone problem


my KDE always show UST timezone. whereas i wanted to change it to be UTC thus i typed this command, [export TZ=UTC]. then i typed command "date". It showed correct time, Sat Jun 4 19:29:59 UTC 2005. But It was changed after closed terminal. What's matter? how can i set timezone absolutely?
 
Old 06-06-2005, 06:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Just put "export TZ=UTC" in /etc/profile.

Regards
 
Old 06-06-2005, 03:45 PM   #3
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Have to guess your distro but on debian you run tzconfig to set the time zone and set KDE to show local time.
 
Old 06-07-2005, 07:29 AM   #4
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bathory
Just put "export TZ=UTC" in /etc/profile.

Regards
This action doesn't work.
 
Old 06-07-2005, 08:27 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
You must logout and login again for the change to take effect.
 
Old 06-07-2005, 08:55 AM   #6
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bathory
You must logout and login again for the change to take effect.
I have rebooted computer and try to logout and login whereas it seem doesn't take action
 
Old 06-07-2005, 09:06 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
What is the output of the "date" command before and after exporting TZ?
Also why don't you tell us your distro, so you can get more help.
 
Old 06-08-2005, 05:53 AM   #8
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bathory
What is the output of the "date" command before and after exporting TZ?
Also why don't you tell us your distro, so you can get more help.
I'm using debian sarge. "Wed Jun 8 17:51:20 UTC 2005" is the output of the date command after "export TZ=UTC", beforce "Thu Jun 9 01:51:09 CST 2005" was showed.
 
Old 06-08-2005, 06:31 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
As makuyl said above, in debian you can use the tzconfig utility to adjust your TZ.
 
Old 06-08-2005, 01:55 PM   #10
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You can also set the timezone with tzselect, or make the symlink /etc/localtime manually. Also have a look at "man tzsetup".
 
  


Reply


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
Evolution 2 / Multisync / WinCE Timezone problem on sync david.skinner Linux - Software 0 04-29-2005 10:58 PM
timezone problem Lord Zoltar Linux - General 5 09-13-2004 11:38 PM
Timezone funny problem. ]un]ie Solaris / OpenSolaris 10 07-21-2004 11:08 PM
How do I get rid of UTC (timezone problem) Baldrick65 Mandriva 2 10-02-2003 08:48 AM
Timezone Again rch LQ Suggestions & Feedback 5 05-20-2003 12:49 AM


All times are GMT -5. The time now is 01:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration