Commit 278fb510 authored by sarsonl's avatar sarsonl
Browse files

Change datetime serialization so no timezone.

The datetimes output from the schema will always be utc, with
a timezone of 0, so the timestamp has been removed.
parent 842ae180
......@@ -20,7 +20,7 @@ VALIDATE_CONFIDENCE_LEVEL = validate.Range(min=0., max=100.)
VALIDATE_KELVIN = validate.Range(min=0.)
VALIDATE_PH = validate.Range(min=0., max=14)
Datetime = partial(fields.DateTime, format='iso')
Datetime = partial(fields.DateTime, format='%Y-%m-%dT%H:%M:%S')
DatetimeRequired = partial(Datetime, required=True)
Degree = partial(fields.Float)
FloatPositive = partial(fields.Float, validate=VALIDATE_POSITIVE)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment