All Versions
13
Latest Version
Avg Release Cycle
47 days
Latest Release
1341 days ago

Changelog History
Page 1

  • v2.0.6 Changes

    August 22, 2020

    ๐Ÿ”„ Changes

    • ๐Ÿ”„ Changed Date::createFromFormat() to workaround PHP 8 bug.
  • v2.0.5 Changes

    May 26, 2020

    ๐Ÿ›  Fixed

    • ๐Ÿ“œ Values in the Ymd format can now be parsed.
    • ๐Ÿ›  Fixed creating Chronos/MutableDateTime from existing instance.
    • โœ‚ Removed remaining HHVM references.
  • v2.0.4 Changes

    April 21, 2020

    ๐Ÿ›  Fixes

    • ๐Ÿšš Moved test cases to match other CakePHP projects
    • ๐Ÿ‘Œ Improved performance of diffInMonths(), diffInYears() and diffInDays().
  • v2.0.3 Changes

    February 26, 2020
    • ๐Ÿ›  Fix 'alias already defined' errors caused by preloading in PHP7.4
    • โž• Added dayOfWeekName magic property.
  • v2.0.2 Changes

    February 08, 2020

    ๐Ÿ”„ 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.
  • v2.0.1 Changes

    December 01, 2019

    ๐Ÿ›  Fixes

    • ๐Ÿ”‹ Features from 1.3.0 were merged in as they were accidentally omitted from the 2.0.0 release.
  • v2.0.0 Changes

    November 30, 2019

    ๐Ÿ’ฅ Breaking Changes

    • PHP 7.2 required.
    • 0๏ธโƒฃ Date and MutableDate now use server default time zone instead of UTC. This makes using Date objects easier for time zones that are far away from UTC as Date::today() will not be wrong as often.
    • โž• Additional typehints added to methods.
    • addYears() no longer overflows months. For example adding (new Chronos('2012-02-29'))->addYears(1);Results in 2013-02-28 not 2013-03-01.

    ๐Ÿ†• New Features

    • Strict mode enabled for all files in chronos.
    • โž• Add Chronos\DifferenceFormatterInterface.
    • Chronos::copy() returns a new instance now.
    • 0๏ธโƒฃ Date and MutableDate constructor now allow time zones to be passed in. This allows you to take dates from other time zones. The default time zone is used if not specified.
    • ๐Ÿ‘ ChronosInterval now supports microseconds.
    • โž• Added addYearsWithOverflow() to retain backwards compatibility with the previous behavior of addYears().
    • โž• Added createFromArray() to ease creating instances from array data.
  • v1.3.0 Changes

    November 30, 2019

    โž• Added

    • createFromArray() was added to make creating instances from array based data.
    • ๐Ÿ‘Œ Improved documentation and Japanese translation.

    ๐Ÿ”„ Changes

    • ๐Ÿ‘Œ Improved compatiblity with PHP 7.4
    • ๐Ÿšš Shorthand comparison functions like gt() and eq() are now aliases for the long form methods greaterThan and equals(). In the future we may deprecate and remove the short forms in order to increase readability of the API.
  • v1.2.8 Changes

    June 17, 2019
    • โž• Additional fixes for relative time parsing with test now instances.
  • v1.2.7 Changes

    June 11, 2019
    • ๐Ÿ‘Œ Improved documentation links
    • ๐Ÿ›  Fixed regression in parse() with relative times that was introduced in 1.2.6