Skip to content

Releases: cakephp/chronos

Chronos 2.3.0

17 Oct 03:08
3ecd6e7
Compare
Choose a tag to compare

Changes

  • Added missing microsecond() setter.

Chronos 2.2.0

17 Jun 14:08
556e14d
Compare
Choose a tag to compare

Changes

Chronos 2.1.2

07 Apr 01:08
1d187c7
Compare
Choose a tag to compare

Changes

  • Fixed missing integer timestamp support in Chronos + MutableDateTime constructors
  • Fixed comparing from wrong source timezone in diffInMonthIgnoreTimezone()

Chronos 2.1.1

06 Feb 03:38
5929b74
Compare
Choose a tag to compare

Changes

  • Cleaned up diffInMonthsIgnoreTimezone()

Chronos 2.1.0

20 Jan 02:40
3f119d1
Compare
Choose a tag to compare

New Features

  • Added diffInMonthsIgnoreTimezone() that takes the difference without allowing PHP to convert back to UTC first. For example: 2019-06-01 Asia/Tokyo and 2019-10-01 Asia/Tokyo would return 4 instead of 3 that DateTime::diff() would return.

Chronos 2.0.6

22 Aug 02:49
30baea5
Compare
Choose a tag to compare

Changes

  • Changed Date::createFromFormat() to workaround PHP 8 bug.

Chronos 2.0.5

26 May 01:28
9309d85
Compare
Choose a tag to compare

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

21 Apr 14:15
7e77b7d
Compare
Choose a tag to compare

Fixes

  • Moved test cases to match other CakePHP projects
  • Improved performance of diffInMonths(), diffInYears() and diffInDays().

Chronos 2.0.3

26 Feb 20:25
0b176c8
Compare
Choose a tag to compare
  • Fix 'alias already defined' errors caused by preloading in PHP7.4
  • Added dayOfWeekName magic property.

Chronos 2.0.2

08 Feb 02:42
e1044d2
Compare
Choose a tag to compare

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.