yaml is currently encoding datetime objects via str(dt), while it should be doing dt.isoformat()--for consistency with the json encoder, and because isoformat is less ambiguous (has timezone information).
The pyyaml api is a bit weird, but I think this involves subclassing YAMLObject.
yaml is currently encoding datetime objects via
str(dt)
, while it should be doingdt.isoformat()
--for consistency with the json encoder, and becauseisoformat
is less ambiguous (has timezone information).The pyyaml api is a bit weird, but I think this involves subclassing
YAMLObject
.