Skip to content

trip-details: time parameter should accept yyyy-MM-dd_HH-mm-ss format #1055

@3rabiii

Description

@3rabiii

Description

The wiki spec states that the time parameter accepts either a Unix millisecond timestamp or a datetime string in yyyy-MM-dd_HH-mm-ss format. Currently, parseTripParams only accepts Unix milliseconds. Passing time=2024-06-15_14-30-00 returns HTTP 400.

Expected Behaviour

  • time=1718459400000 → accepted (current behaviour)
  • time=2024-06-15_14-30-00 → accepted, parsed as 2:30 PM on that date in the agency's timezone

Metadata

Metadata

Assignees

Labels

spec-gapGap found between spec and implementation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions