Skip to content

Commit bee646f

Browse files
authored
fix: use correct calendar and clean up time zones (#43)
This also provides functionality to inspect the skeleton created for formatting the date/time, including tests of the skeleton.
1 parent 25a89de commit bee646f

6 files changed

Lines changed: 211 additions & 153 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ more granular formatting of dates and times:
293293
Additional options include:
294294

295295
* `calendar`: The calendar system to use. Possible values include: `buddhist`,
296-
`chinese`, `coptic`, `dangi`, `ethioaa`, `ethiopia`, `ethiopic`, `gregory`,
296+
`chinese`, `coptic`, `dangi`, `ethioaa`, `ethiopic`, `gregory`,
297297
`hebrew`, `indian`, `islamic`, `islamic-civil`, `islamic-rgsa`, `islamic-tbla`,
298298
`islamic-umalqura`, `iso8601`, `japanese`, `persian`, or `roc`.
299299
* `dayPeriod`: The formatting style used for day periods like "in the morning",
@@ -311,7 +311,7 @@ Additional options include:
311311
`diak`, `ethi`, `finance`, `fullwide`, `geor`, `gong`, `gonm`, `grek`, `greklow`,
312312
`gujr`, `guru`, `hanidays`, `hanidec`, `hans`, `hansfin`, `hant`, `hantfin`,
313313
`hebr`, `hmnp`, `java`, `jpan`, `jpanfin`, `jpanyear`, `kali`, `khmr`, `knda`,
314-
`lana`, `lanatham`, `laoo`, `lepc`, `limb`, `mlym`, `mong`, `mtei`, `mymr`,
314+
`lana`, `lanatham`, `laoo`, `latn`, `lepc`, `limb`, `mlym`, `mong`, `mtei`, `mymr`,
315315
`mymrshan`, `native`, `nkoo`, `olck`, `orya`, `osma`, `rohg`, `roman`, `romanlow`,
316316
`saur`, `shrd`, `sora`, `sund`, `takr`, `talu`, `taml`, `tamldec`, `telu`,
317317
`thai`, `tibt`, `tnsa`, `traditional`, `vaii`, or `wcho`.

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@
1818
</include>
1919
</coverage>
2020

21+
<php>
22+
<ini name="date.timezone" value="UTC"/>
23+
</php>
24+
2125
</phpunit>

0 commit comments

Comments
 (0)