Skip to content

Accept milliseconds in request date field#232

Merged
aracho1 merged 1 commit into
mainfrom
ac/update-date-time-parser-new
Jul 22, 2026
Merged

Accept milliseconds in request date field#232
aracho1 merged 1 commit into
mainfrom
ac/update-date-time-parser-new

Conversation

@aracho1

@aracho1 aracho1 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

What does this change?

  • Clients can send dates with milliseconds (e.g.2026-07-17T10:15:30.123Z) which is valid ISO-8601 but our parser. is too strict at the moment so will reject it.
  • Create an input parser formatter which optionally accepts 3 digit milliseconds.
  • For output, we continue to use the existing formatter (renamed to outputFormatter) to ensure consistency in our output in API response and DB writes
  • Add unit tests

How has this change been tested?

Deployed to CODE and tested on Android emulator

Test request body (date/time with milliseconds)
image

Before the current change
400 Bad Request
image

After the current change
200 (with the millis seconds dropped)
image

@aracho1
aracho1 force-pushed the ac/update-date-time-parser-new branch from e55b765 to e9fccc4 Compare July 17, 2026 12:54
@aracho1 aracho1 changed the title Accept milliseconds in incoming saved-article date fields Accept milliseconds in date fields Jul 17, 2026
@aracho1 aracho1 added the feature Departmental tracking: work on a new feature label Jul 17, 2026
@aracho1 aracho1 changed the title Accept milliseconds in date fields Accept milliseconds in request date field Jul 17, 2026
@aracho1
aracho1 merged commit 73c52a7 into main Jul 22, 2026
12 of 16 checks passed
@aracho1
aracho1 deleted the ac/update-date-time-parser-new branch July 22, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants