Skip to content

Commit

Permalink
parse HH:mm:ss dates correctly (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
berlincount authored Sep 6, 2023
1 parent a74b699 commit fa83c36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/interop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const parseTime = (time: string): Duration | null => {
if (parsed.invalidReason) {
parsed = DateTime.fromFormat(time, "HH:mm");
}
if (parsed.invalidReason) {
parsed = DateTime.fromFormat(time, "HH:mm:ss");
}

if (parsed.invalidReason) {
console.error(
Expand Down

0 comments on commit fa83c36

Please sign in to comment.