[Koha-bugs] [Bug 24650] New: API returned timestamps are incompatible with existing helpers
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Feb 13 10:13:05 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24650
Bug ID: 24650
Summary: API returned timestamps are incompatible with existing
helpers
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: andrew.isherwood at ptfs-europe.com
QA Contact: testopia at bugs.koha-community.org
API endpoints that return system maintained timestamps (specified as datetime
in the DB schema and specified as 'date-time' in the endpoint definition)
return the timestamps as a form of RFC3339 timestamps. For example, from the
GET /patrons/{patron_id} response:
"last_seen": "2020-02-13T08:47:29+00:00"
This is good as it's in a standard form. However, all the existing handlers in
koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc that are used to
transform a received timestamp into the instance's defined format are expecting
timestamps in the format: (see DateTime_from_syspref)
[datestring] [hours:minutes]
Thereby making it impossible to display a returned timestamp to the user in
their chosen format.
We either need to create additional helpers or modify the API returning of ISO
formatted timestamps to something the helpers can cope with.
--
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