We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86ba33c commit d07bd9aCopy full SHA for d07bd9a
UnitTests/Utils/DateParserTests.cs
@@ -75,6 +75,9 @@ public class DateParserTests
75
"Feb 28 2025 12:15:00 AM -0500", // 12:15 AM with non-standard format
76
"Feb 28 2025 11:30:00 PM -0500", // 11:30 PM with non-standard format
77
"Fri, 28 Feb 2025 23:59:60 -0500", // leap second
78
+ "Fri, 28 Feb 2025 23:59:61 -0500", // too many seconds
79
+ "Fri, 28 Feb 2025 22:59:60 -0500", // leap second only valid if time is 23:59:60
80
+ "Fri, 28 Feb 2025 23:60:59 -0500", // too many minutes
81
};
82
83
static readonly string[] expected = {
@@ -120,6 +123,9 @@ public class DateParserTests
120
123
"Fri, 28 Feb 2025 00:15:00 -0500",
121
124
"Fri, 28 Feb 2025 23:30:00 -0500",
122
125
"Fri, 28 Feb 2025 23:59:59 -0500",
126
+ "Fri, 28 Feb 2025 00:00:00 -0500",
127
128
129
130
131
[Test]
0 commit comments