Releases: cakephp/chronos
Releases · cakephp/chronos
Chronos 2.3.0
Changes
- Added missing
microsecond()
setter.
Chronos 2.2.0
Changes
- Support PHP 8.1
- Suppress internal method tentative return type deprecations with
ReturnTypeWillChange
attribute. https://wiki.php.net/rfc/internal_method_return_types
Chronos 2.1.2
Changes
- Fixed missing integer timestamp support in
Chronos
+MutableDateTime
constructors - Fixed comparing from wrong source timezone in
diffInMonthIgnoreTimezone()
Chronos 2.1.1
Changes
- Cleaned up diffInMonthsIgnoreTimezone()
Chronos 2.1.0
New Features
- Added
diffInMonthsIgnoreTimezone()
that takes the difference without allowing PHP to convert back to UTC first. For example:2019-06-01 Asia/Tokyo
and2019-10-01 Asia/Tokyo
would return 4 instead of 3 that DateTime::diff() would return.
Chronos 2.0.6
Changes
- Changed Date::createFromFormat() to workaround PHP 8 bug.
Chronos 2.0.5
Fixed
- Values in the
Ymd
format can now be parsed. - Fixed creating Chronos/MutableDateTime from existing instance.
- Removed remaining HHVM references.
Chronos 2.0.4
Fixes
- Moved test cases to match other CakePHP projects
- Improved performance of
diffInMonths()
,diffInYears()
anddiffInDays()
.
Chronos 2.0.3
- Fix 'alias already defined' errors caused by preloading in PHP7.4
- Added
dayOfWeekName
magic property.
Chronos 2.0.2
Changes
- Updated dev dependencies to stable versions.
- Removed duplicate content in README.
- You can now
new
instances of Chronos, MutableDateTime, Date, MutableDate from other instances.