Skip to content

Validate timestamps as strict RFC 3339 values #16

Description

@stevehenderson

Severity

Low

Problem

isRfc3339() delegates validation to Date.parse(), which accepts formats beyond RFC 3339. This can make sorting and liveness behavior inconsistent across implementations.

Location

  • shared/state.ts:73-75

Proposed fix

Use strict RFC 3339 validation, preferably canonical UTC timestamps, and add rejection tests for non-RFC date formats.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions