LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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, 05:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

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

Regards
 
Old 06-06-2005, 02: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, 06: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, 07:27 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You must logout and login again for the change to take effect.
 
Old 06-07-2005, 07: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, 08:06 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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, 04: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, 05:31 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
As makuyl said above, in debian you can use the tzconfig utility to adjust your TZ.
 
Old 06-08-2005, 12: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 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