Skip to content

Commit 3f9ceec

Browse files
committed
Add IS0-8601 and Rfc-3339 pattern without microsecond fraction
1 parent c0c4bb6 commit 3f9ceec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mago.toml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ excludes = []
77
null_type_hint = "pipe"
88

99
[linter]
10-
level = "Error"
1110
default_plugins = true
1211
plugins = ["phpunit"]
1312

src/Psl/DateTime/FormatPattern.php

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ enum FormatPattern: string implements DefaultInterface
1616
{
1717
case Rfc2822 = 'EEE, dd MMM yyyy HH:mm:ss Z';
1818
case Iso8601 = 'yyyy-MM-dd\'T\'HH:mm:ss.SSSXXX';
19+
case Iso8601WithoutMicroseconds = 'yyyy-MM-dd\'T\'HH:mm:ssXXX';
1920
case Http = 'EEE, dd MMM yyyy HH:mm:ss zzz';
2021
case Cookie = 'EEEE, dd-MMM-yyyy HH:mm:ss zzz';
2122
case SqlDate = 'yyyy-MM-dd';
@@ -25,6 +26,7 @@ enum FormatPattern: string implements DefaultInterface
2526
case IsoOrdinalDate = 'yyyy-DDD';
2627
case JulianDay = 'yyyy DDD';
2728
case Rfc3339 = 'yyyy-MM-dd\'T\'HH:mm:ss.SSSZZZZZ';
29+
case Rfc3339WithoutMicroseconds = 'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ';
2830
case UnixTimestamp = 'U';
2931
case SimpleDate = 'dd/MM/yyyy';
3032
case American = 'MM/dd/yyyy';

0 commit comments

Comments
 (0)