Created
July 16, 2015 19:54
-
-
Save Schlaefer/bcce76d72c9a19b20396 to your computer and use it in GitHub Desktop.
cakephp 3 marshaller timezone ignore workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$entity = $table->newEntity( | |
[ | |
'evaluationDate' => (new Time('2015-07-01T00:00:00+0200'))->timezone('UTC') | |
] | |
); | |
$table->save($entity); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment