Skip to content

Instantly share code, notes, and snippets.

@Schlaefer
Created July 16, 2015 19:54
Show Gist options
  • Save Schlaefer/bcce76d72c9a19b20396 to your computer and use it in GitHub Desktop.
Save Schlaefer/bcce76d72c9a19b20396 to your computer and use it in GitHub Desktop.
cakephp 3 marshaller timezone ignore workaround
<?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