We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<?php use Cake\I18n\FrozenDate; ?> <?= date_default_timezone_get() ?> <?php $time1 = FrozenDate::create($year, $month, 1)->timestamp ?> <?= $time1 ?> <?= FrozenDate::createFromTimestamp($time1) ?> <?php date_default_timezone_set('Europe/Paris') ?> <?php $time3 = FrozenDate::create($year, $month, 1)->timestamp ?> <?= date('Y-m-d 00:00:00', $time3) ?> <?= $time3 ?> <?= FrozenDate::createFromTimestamp($time3) ?>
Gives:
UTC 1454284800 01/02/2016 2016-02-01 00:00:00 1454284800 31/01/2016
but if im using
<?= new FrozenDate($time3) ?>
it gives correct result also while switching to \I18n\Date gives me
UTC 1454284800 01/01/1970 2016-02-01 00:00:00 1454284800 01/01/1970
and again using
<?= new Date($time3) ?>
gives correct results
@markstory reminder "I bet I missed 'correcting' createFromTimestamp() then :)"
The text was updated successfully, but these errors were encountered:
I'll take a look. This might be an issue in cakephp/chronos.
Sorry, something went wrong.
This issue was moved to cakephp/chronos#81
markstory
No branches or pull requests
Gives:
but if im using
it gives correct result also while switching to \I18n\Date gives me
and again using
gives correct results
@markstory reminder "I bet I missed 'correcting' createFromTimestamp() then :)"
The text was updated successfully, but these errors were encountered: