klein
klein copied to clipboard
datetime rendering for klein.Plating
They should be serialized for both JSON and HTML; custom renderer in HTML, extension of 'default' hook in JSON.
I believe that generally you want RFC 3339 strings for JSON date-time.
See: https://github.com/burningmantech/ranger-ims-server/blob/b76ebcde6dc03b7f08bcda013c832850d7a10d27/ims/data/json.py#L183