Skip to content

Releases: alphp/strftime

v0.7.0

26 Jan 01:08
2a8c562
Compare
Choose a tag to compare

Fix fatal error when using the default PHP locale #17

Thanks to @jonasraoni

v0.6.0

18 Dec 21:14
f5e1ece
Compare
Choose a tag to compare

Fix fatal error with non-Gregorian locales (#15)

Thanks to @asmecher

v0.5.0

10 Apr 22:36
Compare
Choose a tag to compare

Account for different handling of historical dates by ICU and Posix #5
Minimum PHP version in composer.json is incorrect #6

Thanks to @IMSoP

v0.4.0 Fixed %k format as specified in documentation

02 Apr 23:21
Compare
Choose a tag to compare
Format Description Example returned values
%k Hour in 24-hour format, with a space preceding single digits 0 through 23

v0.3.0 Fixed week formats

02 Apr 21:07
Compare
Choose a tag to compare

v0.2.0 Fixed some formats

02 Apr 15:26
Compare
Choose a tag to compare

Added documentation of formats
Added test for all formats
Fixed some formats

v0.1.0 PHPUnit tests

01 Apr 23:50
Compare
Choose a tag to compare

Automatic run PHPUnit tests with Actions.

composer run-script test

v0.0.7 Catch exception thrown by DateTime

01 Apr 21:46
Compare
Choose a tag to compare

Catch exception thrown when creating DateTime object with invalid $timestamp value.

v0.0.6 Removed never thrown InvalidArgumentException

01 Apr 21:07
Compare
Choose a tag to compare

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

17 Mar 21:50
Compare
Choose a tag to compare

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