Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I can't figure out why I have 5 hours difference between GUI clock and date command in terminal. My bios clock is set to GMT... Any ideas ?

franck@franck-ThinkPad-T61:~$ date
mercredi 11 avril 2012, 02:48:47 (UTC-0500)
franck@franck-ThinkPad-T61:~$ sudo dpkg-reconfigure tzdata

Current default time zone: 'Europe/Paris'
Local time is now:      Wed Apr 11 09:49:02 CEST 2012.
Universal Time is now:  Wed Apr 11 07:49:02 UTC 2012.

franck@franck-ThinkPad-T61:~$ tail /etc/timezone 
Europe/Paris
franck@franck-ThinkPad-T61:~$ date
mercredi 11 avril 2012, 02:49:21 (UTC-0500)
franck@franck-ThinkPad-T61:~$ sudo dpkg-reconfigure --frontend noninteractive tzdata

Current default time zone: 'Europe/Paris'
Local time is now:      Wed Apr 11 09:49:27 CEST 2012.
Universal Time is now:  Wed Apr 11 07:49:27 UTC 2012.

franck@franck-ThinkPad-T61:~$ date
mercredi 11 avril 2012, 02:49:30 (UTC-0500)

franck@franck-ThinkPad-T61:~$ sudo cat /etc/default/rcS
#
# /etc/default/rcS
#
# Default settings for the scripts in /etc/rcS.d/
#
# For information about these variables see the rcS(5) manual page.
#
# This file belongs to the "initscripts" package.

TMPTIME=0
SULOGIN=no
DELAYLOGIN=no
UTC=yes
VERBOSE=no
FSCKFIX=no

franck@franck-ThinkPad-T61:~$ sudo hwclock --show
mer. 11 avril 2012 07:49:48 CDT  -0.555705 secondes
share|improve this question
    
is the TZ environment variable set to anything? –  James Henstridge Apr 12 '12 at 2:10
    
Thanks you're right. Didn't catch that TZ was also set as America/Chicago in my ~/.profile file... –  Franck Apr 16 '12 at 8:31
add comment

1 Answer

up vote 1 down vote accepted

Thanks you're right. Didn't catch that TZ was also set as America/Chicago in my ~/.profile file...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.