Forum OpenACS Development: Re: Timezones

Collapse
3: Re: Timezones (response to 2)
Posted by Jeff Davis on
I guess it was Ash Katwala and I that inflicted those procs on the world.  One point is that I disagree with the ACS Java docs (and agree with Eduardo) that date/times should be UTC in the DB (although I also think the server should be on UTC as well so in some sense it is the same answer).  Unfortunately we rely on the DB datetime formatting all over the place
which means running everything as UTC and formatting on
output is problematic.

Anyway, those routines were the lowest level ones on which
something like lc_time_utc_to_user would be built.

Also, keep in mind that in some cases you want the time you
present to be something other than the users timezone.
An example would be a travel itenerary where the departure
times should be the local timezone for the airport.