Skip to content

Commit

Permalink
Fixed time removal when format is U
Browse files Browse the repository at this point in the history
  • Loading branch information
maddoger committed Jan 29, 2016
1 parent a773918 commit 72db415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DateTimeAttribute.php
Expand Up @@ -150,7 +150,7 @@ protected static function parseDateValue($value, $format, $timeZone)
return false;
} else {
// if no time was provided in the format string set time to 0 to get a simple date timestamp
if (strpbrk($format, 'HhGgis') === false) {
if (strpbrk($format, 'UHhGgis') === false) {
$date->setTime(0, 0, 0);
}
return $date;
Expand Down

0 comments on commit 72db415

Please sign in to comment.