https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12669

--- Comment #35 from David Cook <dc...@prosentient.com.au> ---
(In reply to Colin Campbell from comment #33)
> I wonder if we could use utc internally and just use the local timezone to
> convert user input and to present the date externally. We'd need to be
> fairly vigorous in cleaning up the various vaguely different ways we
> currently treat dates, cetainly when we're doing calculations we probably
> want to do them in a common base as otherwise there's too many opportunities
> to fall into a given timezone's black hole

Agreed. I think we could use UTC internally and just use the local timezone to
convert user input and convert output for users.

We would need to be vigorous in cleaning up how we've currently treating dates
though, yeah :/. Generally speaking, we're not recording super precise datetime
data, so I don't see why we couldn't use floating timezones for calculations. I
suppose it depends on the calculations being done, but that's really the only
way of doing it with our current holiday checking code without causing invalid
local times. 

We might be able to use UTC for some calculations, but... I don't think so  in
the holiday case because we'd be interested in local days and obviously UTC
doesn't always correspond with the same day. You might have 2 UTC timestamps
for the same day in UTC, but they'd actually correspond to different days in
local time. If you truncated that for the sake of date checking, you'd be
skipping one of the local days, which would be really bad.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to