X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUtils.php;h=c5cd884b7291ba328336837430d4579f12ec2b0e;hb=dafd3f081ab581e074f3280d4323dc92cb33df46;hp=952378ab8620e02a360f73fd10ad4d1147afda9d;hpb=e6754f2154a79abd8e5e64bd923f6984aa9ad44b;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Utils.php b/application/Utils.php index 952378ab..c5cd884b 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -323,6 +323,7 @@ function format_date($date, $time = true, $intl = true) IntlDateFormatter::LONG, $time ? IntlDateFormatter::LONG : IntlDateFormatter::NONE ); + $formatter->setTimeZone($date->getTimezone()); return $formatter->format($date); }