Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
Chronos 3.1.0 source code.tar.gz | 2024-07-18 | 42.1 kB | |
Chronos 3.1.0 source code.zip | 2024-07-18 | 55.7 kB | |
README.md | 2024-07-18 | 1.2 kB | |
Totals: 3 Items | 99.0 kB | 0 |
Behavior Changes
Chronos::createFromTimestamp()
handles timezones differently. If$timezone
is not explicitly passed then the instance has timezone set to+00:00
unlike earlier where the currently set default timezone was used. This behavior change normalizes behavior with changes in PHP 8.4 which adds a newDateTimeInterface::createFromTimestamp()
method.
What's Changed
- Improve exception messages by @dereuromark in https://github.com/cakephp/chronos/pull/447
- Pluralize years and months in function by @andrewlavens in https://github.com/cakephp/chronos/pull/448
- Provide PSR-20 Clock implementation by @odan in https://github.com/cakephp/chronos/pull/443
- Run composer normalize over composer.json by @dereuromark in https://github.com/cakephp/chronos/pull/449
- Allow phpunit 11 by @ADmad in https://github.com/cakephp/chronos/pull/455
- Fix error on PHP 8.4 by @ADmad in https://github.com/cakephp/chronos/pull/454
New Contributors
- @andrewlavens made their first contribution in https://github.com/cakephp/chronos/pull/448
Full Changelog: https://github.com/cakephp/chronos/compare/3.0.4...3.1.0