Globalize actually returns lower case dayperiod. But the documentation says dayPeriod.
This is confusing because Intl.DateTimeFormat's formatToParts does return dayPeriod but Globalize diverges from this and returns lower case dayperiod. This mistake in the documentation can lead to tricky bugs where a developer writes code according to the documentation checking for dayPeriod which doesn't work.
Globalize actually returns lower case
dayperiod
. But the documentation saysdayPeriod
.This is confusing because
Intl.DateTimeFormat
'sformatToParts
does returndayPeriod
but Globalize diverges from this and returns lower casedayperiod
. This mistake in the documentation can lead to tricky bugs where a developer writes code according to the documentation checking fordayPeriod
which doesn't work.