Skip to content

Commit

Permalink
Add IS0-8601 and Rfc-3339 pattern without microsecond fraction
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Jan 21, 2025
1 parent c0c4bb6 commit 3f9ceec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion mago.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ excludes = []
null_type_hint = "pipe"

[linter]
level = "Error"
default_plugins = true
plugins = ["phpunit"]

Expand Down
2 changes: 2 additions & 0 deletions src/Psl/DateTime/FormatPattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ enum FormatPattern: string implements DefaultInterface
{
case Rfc2822 = 'EEE, dd MMM yyyy HH:mm:ss Z';
case Iso8601 = 'yyyy-MM-dd\'T\'HH:mm:ss.SSSXXX';
case Iso8601WithoutMicroseconds = 'yyyy-MM-dd\'T\'HH:mm:ssXXX';
case Http = 'EEE, dd MMM yyyy HH:mm:ss zzz';
case Cookie = 'EEEE, dd-MMM-yyyy HH:mm:ss zzz';
case SqlDate = 'yyyy-MM-dd';
Expand All @@ -25,6 +26,7 @@ enum FormatPattern: string implements DefaultInterface
case IsoOrdinalDate = 'yyyy-DDD';
case JulianDay = 'yyyy DDD';
case Rfc3339 = 'yyyy-MM-dd\'T\'HH:mm:ss.SSSZZZZZ';
case Rfc3339WithoutMicroseconds = 'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ';
case UnixTimestamp = 'U';
case SimpleDate = 'dd/MM/yyyy';
case American = 'MM/dd/yyyy';
Expand Down

0 comments on commit 3f9ceec

Please sign in to comment.