diff --git a/core/base/src/commonMain/kotlin/dev/sasikanth/rss/reader/util/DateTimeFormatters.kt b/core/base/src/commonMain/kotlin/dev/sasikanth/rss/reader/util/DateTimeFormatters.kt index 5fd3ab8a6..833c7a1c8 100644 --- a/core/base/src/commonMain/kotlin/dev/sasikanth/rss/reader/util/DateTimeFormatters.kt +++ b/core/base/src/commonMain/kotlin/dev/sasikanth/rss/reader/util/DateTimeFormatters.kt @@ -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", diff --git a/core/base/src/commonTest/kotlin/dev/sasikanth/rss/reader/util/DateTimeFormattersTest.kt b/core/base/src/commonTest/kotlin/dev/sasikanth/rss/reader/util/DateTimeFormattersTest.kt index b20f05fad..ccd2938b9 100644 --- a/core/base/src/commonTest/kotlin/dev/sasikanth/rss/reader/util/DateTimeFormattersTest.kt +++ b/core/base/src/commonTest/kotlin/dev/sasikanth/rss/reader/util/DateTimeFormattersTest.kt @@ -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 = @@ -65,7 +67,9 @@ class DateTimeFormattersTest { 1700867580000, 1701820550000, 1702380018000, - 1702217460000 + 1702217460000, + 1717243200000, + 1727353800000 ) // when