Releases: alphp/strftime
Releases · alphp/strftime
v0.0.6 Removed never thrown InvalidArgumentException
Check if $timestamp is DateTimeInterface instance before treating it as integer or string.
InvalidArgumentException is never thrown
Tranks to @TiberiuD
v0.0.5 Try to use LC_TIME locale if locale param is empty
Using LC_TIME locale if possible will make the function more compatible to the current behaviour.
The Locale class also supports identifiers with dashes and may be more than 5 characters; see https://www.php.net/manual/en/class.locale.php
Thanks to @the-mars