]> git.koha-community.org Git - koha.git/commit
Bug 29718: (QA follow-up) Add optional offset handling
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 17 Dec 2021 12:36:20 +0000 (12:36 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 28 Jan 2022 21:09:05 +0000 (11:09 -1000)
commitda34328fc11ef9fbb3e265fd0603a4f207425c77
treec96d053fa845f53dc7d027a99c776b7546d93abe
parent9daea562a8db1033c76cbb7aec56a15f7b7cdcdf
Bug 29718: (QA follow-up) Add optional offset handling

ISO8601 optionally supports timezone offsets. If a timezone is ommited,
we should assume 'local' time (Which in our case is instance
configuration time), if we are passed 'Z' or 'z' we should set timezone
to 'UTC', otherwise we should set the timezone to the passed offset.

Whilst ISO8601 does NOT support AM/PM, I left that intact as it has
historical relevance in Koha and we share the ISO parsing with SQL type
parsing amongth other things.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/DateUtils.pm