Skip to content

Ensure timestamp checks are consistent #50

@elichad

Description

@elichad

We have checks that apply to startTime, endTime, and maybe other datetime properties. We should make sure they follow a consistent pattern for the timestamps.

Sparked by discussion on #40:

Do we need to worry about milliseconds / fractional seconds? Just wondering as auto-generated metadata / libraries may output this and therefore this will fail. Not sure its specified in RFC 3339

Secondly, offsets without colons will fail. e.g from Wikipedia: "...Cairo will be "+02:00","+0200", or "+02"."

Originally posted by @alexhambley in #40 (comment)

I think we should add the fractional seconds (with ',' or '.' as the delimiter).

I think we should retain ':' delimiter in the timezones, I don't know if we should allow only HH though - I couldn't see easily if this was allowed in the strict definition.

Maybe we need an example in our error messages of the format we accept?

Originally posted by @douglowe in #40 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions