Make the date+time in the JSON report for "validatedAt" a standard format #1652
Labels
enhancement
New feature request or improvement on an existing feature
status: Ready
An issue that is ready to be worked on.
Describe the problem
The date+time for when validation is run uses a custom format, like "2024-01-15 at 23:14:46 EST". This is not a standard format and so is not easily machine readable.
It is put in two places: the JSON report as "validatedAt" and the HTML report in the first sentence.
Proposed solution
For the JSON report, it would be better to use a standard format, like ISO_ZONED_DATE_TIME: 2024-01-15T24:14:45+05:00[America/New_York]
Alternatives you've considered
It could be left as is. That makes it harder for anyone parsing the JSON report but doesn't break any existing parsers.
Additional context
This was noticed during review of issue #1292.
The main concern is that this would break any existing parsers of the validatedAt field in the JSON report.
My guess is that there are few if any such parsers and that a one-time break to use a standard format would be worthwhile.
The custom format is specified in the code here:
gtfs-validator/main/src/main/java/org/mobilitydata/gtfsvalidator/runner/ValidationRunner.java
Line 270 in 86f9484
The text was updated successfully, but these errors were encountered: