[Koha-bugs] [Bug 24455] Date formatting from JS
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 4 14:52:47 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24455
--- Comment #36 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 100124
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100124&action=edit
Bug 24455: [DO NOT PUSH] 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.
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list