[Koha-bugs] [Bug 24455] Date formatting from JS
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 25 14:42:50 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24455
Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #100124|0 |1
is obsolete| |
--- Comment #51 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 101713
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101713&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>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list