indicate that REST API timestamps are UTC

use iso8601 Z suffix for UTC timestamps

use dateutil to parse dates from proxy, as well

even though CHP uses iso8601 UTC timestamps, we no longer assume CHP, so use more general parsing

in our db we are stuck with naïve datetime objects, so use those internally.
But ensure we put 'Z' on timestamps we ship externally
This commit is contained in:
Min RK
2018-03-21 14:18:02 +01:00
parent 05b2bf4c96
commit fd40e27be4
7 changed files with 25 additions and 15 deletions

View File

@@ -10,7 +10,6 @@ from oauth2.error import ClientNotFoundError
from sqlalchemy import inspect
from tornado import gen
from tornado.log import app_log
from traitlets import HasTraits, Any, Dict, default
from .utils import maybe_future, url_path_join