| 1 |
# Release History |
| 2 |
|
| 3 |
## v4.1.1 |
| 4 |
* Catch a ValueError from DateTime::createFromFormat |
| 5 |
|
| 6 |
## v4.1.0 |
| 7 |
* Add add(), sub() methods for date interval arithmetic |
| 8 |
* setFakeTime: add $step parameter |
| 9 |
* Add microtime() function |
| 10 |
* Fix documentation for ConvertibleTimestamp.php |
| 11 |
|
| 12 |
## v4.0.0 |
| 13 |
* Remove HHVM support code from setTimestamp() |
| 14 |
* Drop PHP 7.0/7.1 and HHVM support |
| 15 |
* Handle 2-digit years per RFC 2626 |
| 16 |
|
| 17 |
## v3.0.0 |
| 18 |
* BREAKING CHANGE: the library is now stricter about rejecting some invalid |
| 19 |
formats such as "Wed, 22 May 2019 12:00:00 +1 day" (which is a valid date |
| 20 |
spec in some tools but not in ConvertibleTimestamp which does not accept |
| 21 |
relative date modifiers) or "Wed, 22 May 2019 12:00:00 A potato" (where |
| 22 |
the trailing nonsense got silently ignored before this change). |
| 23 |
* Time zones are handled more consistently and more correctly. |
| 24 |
* Fix some bugs certain formats had with pre-Unix-epoch dates. |
| 25 |
* Relax ISO 8601 syntax: allow space instead of T |
| 26 |
* Improve ISO 8601 syntax compliance: accept comma as decimal separator, |
| 27 |
accept non-Z timezones. |
| 28 |
* ConvertibleTimestamp::convert can take a DateTime now. |
| 29 |
|
| 30 |
## v2.2.0 |
| 31 |
* Add ConvertibleTimestamp::time(), which works like the time() built-in but |
| 32 |
can be mocked in tests. |
| 33 |
|
| 34 |
## v2.1.1 |
| 35 |
* Fix timezone handling in TS\_POSTGRES. Before, it generated a format that |
| 36 |
was accepted by Postgres but differed from what Postgres itself generates. |
| 37 |
|
| 38 |
## v2.1.0 |
| 39 |
* Introduce a mock clock for unit testing. |
| 40 |
|
| 41 |
## v2.0.0 |
| 42 |
* BREAKING CHANGE: drop PHP 5 support (HHVM in PHP 5 mode is still supported). |
| 43 |
* Support microtime for Unix and Oracle formats. |
| 44 |
|
| 45 |
## v1.0.0 |
| 46 |
* Initial commit |