ptpb / pb

pb is a formerly-lightweight pastebin and url shortener
Other
549 stars 52 forks source link

fix yaml datetime encoder behavior #145

Closed buhman closed 8 years ago

buhman commented 8 years ago

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.

buhman commented 8 years ago

0f8a7a430bb64629342bd8ad49a99431052b1ff3