X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FDateTimeFormat.php;h=41cd16d2f41464bc692a63963b6109ba1e37dee1;hb=55db2670d1662b32c6faa820c60c44e16cffab20;hp=a1eb749948fcea4ea8047923942411a43dd71b5d;hpb=2b95a7e7cd76c573b82b2dbcc5ad08b1501ee89b;p=friendica.git diff --git a/src/Util/DateTimeFormat.php b/src/Util/DateTimeFormat.php index a1eb749948..41cd16d2f4 100644 --- a/src/Util/DateTimeFormat.php +++ b/src/Util/DateTimeFormat.php @@ -1,6 +1,6 @@ getMessage()); + Logger::notice('DateTimeFormat::convert: exception: ' . $e->getMessage()); $d = new DateTime('now', $from_obj); } @@ -160,7 +168,7 @@ class DateTimeFormat $to_obj = new DateTimeZone('UTC'); } - $d->setTimeZone($to_obj); + $d->setTimezone($to_obj); return $d->format($format); }