Skip to content

Commit

Permalink
Merge pull request #482 from opentripplanner/interpret-all-hhmm-as-24…
Browse files Browse the repository at this point in the history
…-hours

fix(core-utils): prefer 24 hour time parsing
  • Loading branch information
miles-grant-ibigroup authored Nov 16, 2022
2 parents 495e180 + a0fa30a commit 2ca887d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core-utils/src/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ export const defaultParams = [
*/
const TIME_FORMATS = [
"HH:mm:ss",
"HH:mm",
"H:mm",
"h:mm:ss a",
"h:mm:ssa",
"h:mm a",
"h:mma",
"h:mm",
"HHmm",
"hmm",
"ha",
OTP_API_TIME_FORMAT // 'HH:mm'
"ha"
];

/* A function to retrieve a property value from an entry in the query-params
Expand Down

0 comments on commit 2ca887d

Please sign in to comment.