[Koha-bugs] [Bug 24980] Date formatting from JS - use timezone only with dates with offset

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 27 13:39:56 CET 2020


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

--- Comment #9 from Agustín Moyano <agustinmoyano at theke.io> ---
(In reply to Jonathan Druart from comment #8)
> When should we deal with tz when displaying dates?
> 
> What are the different possibilities offered by js-date-format.inc?

Hi Jonathan, with this patch, js-date-format can detect if incoming date is
just date only, or something else.. 

So, this functions should be used to transform date and datetime to Koha's
defined format. If the first, it's just transformed to the corresponding
format, if the later it will also be transformed to the corresponding timezone.

With Martin's bug 24850, datetimes from database has timezone now, so I don't
believe we will have more cases, but maybe I'm not seeing the big picture.

Do you have any other case in mind?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list