[Koha-bugs] [Bug 24455] date formatting from JS

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 2 11:29:06 CET 2020


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

--- Comment #25 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
Created attachment 99874
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99874&action=edit
Bug 24455: test timezone

This is just a test.. I added the .inc file to adimn's main page

To test:

1. go to Koha main page and open chrome or firefox console
2. type

   $datetime('2020-02-18T12:46:05Z', {tz: 'America/Argentina/Buenos_Aires'})

   and you should get

   "02/18/2020 09:46"

   because America/Argentina/Buenos_Aires is -03:00

3. type

   $datetime('2020-02-18T12:46:05Z', {tz: 'Asia/Shanghai'})

   and you should get

   "02/18/2020 20:46"

   because Asia/Shanghai is +08:00

4. type

   $datetime('2020-02-18T12:46:05Z')

   and it should be translated to your koha instance configured timezone.

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


More information about the Koha-bugs mailing list