buckket / twtxt

Decentralised, minimalist microblogging service for hackers.
http://twtxt.readthedocs.org/en/stable/
MIT License
1.92k stars 79 forks source link

Use RFC3339 for timestamps #103

Closed mdom closed 8 years ago

mdom commented 8 years ago

Would it be possible to change the specification of a message to include a rfc3339 timestamp? ISO 8601 is a lot harder to parse and allows constructs like 2016-W15-03 that are not parsed correctly by the current parser. I checked 55 twtxt files and everybody is using rfc3339, so it would be easy to make the change now.

kdave commented 8 years ago

Such change would be better done sooner than later.

DracoBlue commented 8 years ago

:+1:

quite commented 8 years ago

I agree. RFC3339 is the way (which by the way requires a timezone (or Z), and timezone must have a colon)

buckket commented 8 years ago

Yes, this seems reasonable. The official twtxt client already complies to RFC3339, no further change needed there. We would only have to change the specification.