mami-project / pto3-go

MAMI Path Transparency Observatory server (v3) and associated utilities
1 stars 2 forks source link

Support both RFC3339 and UTC unix epoch integers for times everywhere #21

Open britram opened 6 years ago

britram commented 6 years ago

Using ISO/RFC3339 time format everywhere is nice for visibility, but it's less visible urlencoded and takes up more space on obset files. Change the obset format, raw metadata format, and query string format to use seconds since 1970-01-01T00:00:00Z on the wire.

britram commented 6 years ago

Actually, we should support both formats, since we can easily sense which one is in use.

britram commented 6 years ago

See ParseTime in casting.go. This is not yet done in obset files; need to do a pass to ensure we're consistent here.