Skip to content

Commit

Permalink
Add new date time pattern
Browse files Browse the repository at this point in the history
fixes #751
  • Loading branch information
msasikanth committed Oct 2, 2024
1 parent 33bc255 commit 98f64b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ internal val dateFormatterPatterns =
"E, d MMM yyyy HH:mm Z",
"E, dd MMM yyyy",
"d MMM yyyy HH:mm:ss z",
"dd MMM yyyy HH:mm Z",
"yyyy-MM-dd'T'HH:mm:ssz",
"yyyy-MM-dd'T'HH:mm:ssZ",
"yyyy-MM-dd'T'HH:mm:ss",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class DateTimeFormattersTest {
"Fri, 24 Nov 2023 23:13:00 GMT",
"Tue, 05 Dec 2023 15:55:50 PST",
"2023-12-12T11:20:18",
"2023-12-10T06:11:00.000-08:00"
"2023-12-10T06:11:00.000-08:00",
"01 Jun 2024 12:00 +0000",
"Thu, 26 Sep 2024 14:30:00 +0200",
)

val expectedEpochMillis =
Expand All @@ -65,7 +67,9 @@ class DateTimeFormattersTest {
1700867580000,
1701820550000,
1702380018000,
1702217460000
1702217460000,
1717243200000,
1727353800000
)

// when
Expand Down

0 comments on commit 98f64b5

Please sign in to comment.