Skip to content

Commit

Permalink
Use mutable date for Date base class.
Browse files Browse the repository at this point in the history
Historically DateTimes from date columns were mutable.
Make that the default now as well.
  • Loading branch information
markstory committed Nov 13, 2015
1 parent ad8ced1 commit 037e1d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Database/Type/DateType.php
Expand Up @@ -15,7 +15,7 @@
namespace Cake\Database\Type;

use Cake\Database\Driver;
use DateTimeImmutable;
use DateTime;

class DateType extends DateTimeType
{
Expand Down
4 changes: 2 additions & 2 deletions src/I18n/Date.php
Expand Up @@ -14,7 +14,7 @@
*/
namespace Cake\I18n;

use Cake\Chronos\Date as BaseDate;
use Cake\Chronos\MutableDate;
use IntlDateFormatter;
use JsonSerializable;

Expand All @@ -23,7 +23,7 @@
*
* Adds handy methods and locale-aware formatting helpers
*/
class Date extends BaseDate implements JsonSerializable
class Date extends MutableDate implements JsonSerializable
{
use DateFormatTrait;

Expand Down

0 comments on commit 037e1d6

Please sign in to comment.