File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ trait Options
96
96
'v ' => '([0-9]{1,3}) ' ,
97
97
'e ' => '([a-zA-Z]{1,5})|([a-zA-Z]* \\/[a-zA-Z]*) ' ,
98
98
'I ' => '(0|1) ' ,
99
- 'O ' => '([+-](1[012 ]|0[0-9])[0134][05]) ' ,
100
- 'P ' => '([+-](1[012 ]|0[0-9]):[0134][05]) ' ,
101
- 'p ' => '(Z|[+-](1[012 ]|0[0-9]):[0134][05]) ' ,
99
+ 'O ' => '([+-](1[0123 ]|0[0-9])[0134][05]) ' ,
100
+ 'P ' => '([+-](1[0123 ]|0[0-9]):[0134][05]) ' ,
101
+ 'p ' => '(Z|[+-](1[0123 ]|0[0-9]):[0134][05]) ' ,
102
102
'T ' => '([a-zA-Z]{1,5}) ' ,
103
103
'Z ' => '(-?[1-5]?[0-9]{1,4}) ' ,
104
104
'U ' => '([0-9]*) ' ,
Original file line number Diff line number Diff line change @@ -904,6 +904,9 @@ public function testHasFormat()
904
904
$ this ->assertFalse (Carbon::hasFormat ('1975-05-01 ' , 'Y-*-d ' ));
905
905
906
906
$ this ->assertTrue (Carbon::hasFormat ('2012-12-04 22:59.32130 ' , 'Y-m-d H:s.vi ' ));
907
+
908
+ // New Zealand Daylight time
909
+ $ this ->assertTrue (Carbon::hasFormat ('2024-03-02T00:00:00+13:00 ' , 'Y-m-d\TH:i:sP ' ));
907
910
}
908
911
909
912
public function testHasFormatWithModifiers ()
You can’t perform that action at this time.
0 commit comments