X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FDateTimeFormat.php;h=41cd16d2f41464bc692a63963b6109ba1e37dee1;hb=55db2670d1662b32c6faa820c60c44e16cffab20;hp=d2a96d0357193e67a083d5a9a3cfdb00f849279b;hpb=108837617207e87547be3dd79ca8d96c53cc31c5;p=friendica.git diff --git a/src/Util/DateTimeFormat.php b/src/Util/DateTimeFormat.php index d2a96d0357..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); }