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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to