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

--- Comment #2 from Jonathan Druart <[email protected]> ---
(In reply to Nick Clemens (kidclamp) from comment #1)
> Currently we store them in server time and present the conf time on display,
> is that correct? What does UTC gain us over that?

I will explain a bit more later.

But the idea here is to first convert to UTC the existing data, then remove the
TZ at the koha config level.
That will bring us more flexibility, like having the tz defined at client
level.
There would be a "default tz" defined at library level, so we could have an
instance of Koha working on different timezones. End-user using Koha in a
different timezone and see the correct time (instead of the server time).
We won't actually care about the timezone during the calculation and the need
to to convert or not depending on where we are (perl, js, etc.) You can see
that I have reported few bugs in the area lately and, trust me, it's a mess
everywhere.
We simply need to deal with rfc3339-formatted datetimes, send them to the
client/consumer, and they will convert to whatever timezone they want (this is
the idea, in practice it's not that trivial :D)
This is about sanitizing, cleaning, and doing the right thing with timezone and
datetime handling.

Yesterday I've posted a video to show how it would work for the end-user:
https://chat.koha-community.org/koha-community/pl/zsp4pmnkbtfq9c8qad3ptnj5jr

It will also help us to find hidden bugs (where we do not deal correctly with
datetime values).

> This will impact reports from the end user - would it be worth having
> support in reports for datettime pickers that will convert entered
> date/times to UTC if we do this?

Yes, definitely, you read my mind, I have this empty commit on my working
branch "TODO - reports? We don't have datetime runtime parameter"
And a lot of other TODOs :D

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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