[Koha-bugs] [Bug 24850] Koha::DateUtils ignores offsets in RFC3339 datetimes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 28 08:55:20 CEST 2021


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Text to go in the|                            |Prior to this patch our
      release notes|                            |date handling library
                   |                            |ignored offset data passed
                   |                            |with rfc3339 dates. This
                   |                            |could lead to problems if
                   |                            |an API client converted to
                   |                            |UTC or was in a different
                   |                            |timezone to the Koha
                   |                            |instance time setting.
                   |                            |
                   |                            |This patch adds proper
                   |                            |handling to dt_from_string
                   |                            |such that if an REF3339
                   |                            |date is input, we parse out
                   |                            |the offset and then adjust
                   |                            |the time to match the
                   |                            |instance timezone for
                   |                            |storage.

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


More information about the Koha-bugs mailing list