Forum OpenACS Development: timezones broken?

Collapse
Posted by Jeff Lu on
On set system timezone on acs-lang/admin
http://yoursite.com/acs-lang/admin/set-system-timezone
I seem to have encountered a weird behavior on timezones.
My system is on utc +000000.
Current time is 2005-04-27 11:26:xx (UTC)
When I set to MST 2005-04-27 11:26:xx
When I set to EST 2005-04-27 16:26:xx
MST should be an earlier time than EST (ie, 1500 EST is 1300 MST) right?
Is there another code I can refer to to set the timezones or compute changes between timezones correctly?
Cheers!
Collapse
2: Re: timezones broken? (response to 1)
Posted by Eduardo Pérez on
There may be lots of bugs in timezone handling in OpenACS, but I don't know what's the problem here. Could you specify the correct set of steps to get this problem? What OpenACS versions, PosgreSQL o Oracle and versions, OS version ...
Collapse
3: Re: timezones broken? (response to 1)
Posted by Jeff Davis on
It looks like the MST timezone data is bad. All the timezone info was derived from the data in linux so if there was bad rules there, we constructed bad offsets. You could try America/Denver as the timezone which looks like it is correct.
Collapse
4: Re: timezones broken? (response to 1)
Posted by Jeff Lu on
System:

Running on Version 5.1.0 Release Candidate 1

Postgresql 7.4.6

Fedora core 3 2.6.9-1.667

System time set as utc



To reproduce, go to http://yoursite.com/acs-lang/admin/set-system-timezone

Change times to MST and EST and compare the times.