]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Utils.php
format_date: include timezone in IntlDateFormatter object
[github/shaarli/Shaarli.git] / application / Utils.php
index 952378ab8620e02a360f73fd10ad4d1147afda9d..c5cd884b7291ba328336837430d4579f12ec2b0e 100644 (file)
@@ -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);
 }