[haiku-bugs] [Haiku] #6370: GMT and Local times are still out of sync

  • From: "Karvjorm" <trac@xxxxxxxxxxxx>
  • Date: Thu, 22 Jul 2010 22:35:09 -0000

#6370: GMT and Local times are still out of sync
----------------------------------------+-----------------------------------
   Reporter:  Karvjorm                  |        Owner:  axeld    
       Type:  bug                       |       Status:  new      
   Priority:  normal                    |    Milestone:  R1       
  Component:  Preferences/Time & Date   |      Version:  R1/alpha2
   Keywords:  Local time Greenwich GMT  |   Blocked By:           
Has a Patch:  0                         |     Platform:  All      
   Blocking:                            |  
----------------------------------------+-----------------------------------
 I just updated to r37641. Local time and GMT are still wrong. Actually,
 the problem is still the same as in ticket #3903.

 When I open a terminal window, and type the '''date''' command, I will see
 the correct (local) time and timezone:

 {{{
 Thu Jul 22 23:51:56 EEST 2010
 }}}
 In winter time this is Europe/Helsinki time zone and it is two hours prior
 to GMT. If time is 20:00 in Helsinki, it is 18:00 in Greenwich. In
 summertime time difference is three hours. If time is 20:00 in Helsinki,
 it is 17:00 in Greenwich.

 When I opened the Locale Preflet first time after upgrade, the local time
 is correct, but the time zone is Others->Greenwich. When I change time
 zone to Europe/Helsinki, local time will change from 20:00 to 23:00. This
 is three time out of the correct time (and time difference to GMT is now 6
 hours).

 Then I open the Time tab and change time to the local time (20:00). Local
 time is now correct and time zone is now correct, but time in Deskbar will
 change to 17:00 (which is actually GMT).

 When I select the GMT radio button of Time tab, the Analog clock jumps
 back to 23:00. Time difference of Deskbar time and Analog clock is now 6
 hours. :)

 This could be fixed so, that when the time is read from the computer (not
 from time
 server) and if time zone is not known (if date command information about
 time zone shown in above is not used), then the default time is the local
 time and the GMT time should be NULL. First when time zone is selected in
 time preflet, GMT should be calculated, but the starting point should
 always be the local time (and time difference of selected time zone and
 Greenwich time).

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6370>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: