[Koha-bugs] [Bug 24455] date formatting from JS
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Feb 18 19:31:52 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24455
Agustín Moyano <agustinmoyano at theke.io> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #99192|0 |1
is obsolete| |
--- Comment #16 from Agustín Moyano <agustinmoyano at theke.io> ---
Created attachment 99198
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99198&action=edit
[DO NOT PUSH] 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