Skip to content

Commit

Permalink
fix(core): Add another date format to the date parser (#667)
Browse files Browse the repository at this point in the history
Swabbie started failing when parsing AMI image timestamp. Adding another pattern to the list of supported formats fixed the issue.

Co-authored-by: Jason <[email protected]>
  • Loading branch information
jervi and jasonmcintosh authored Jun 10, 2024
1 parent 6b1c44d commit 4cad413
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Dates {
private val formats: List<DateTimeFormatter> = listOf(
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSS'Z'"),
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssZ"),
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"),
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ"),
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS"),
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSSSS"),
Expand Down

0 comments on commit 4cad413

Please sign in to comment.