aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Utils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-20 11:31:35 +0100
committerGitHub <noreply@github.com>2021-01-20 11:31:35 +0100
commit055d97f9a9e67d8ee8ae81bbf59a4b846a145d9f (patch)
treefa133bbf7252f7a4a1f40929df007162dd0c1f0c /application/Utils.php
parentbaac4388b1696fb39f1b0bd621d215bba2da2ca8 (diff)
parentdafd3f081ab581e074f3280d4323dc92cb33df46 (diff)
downloadShaarli-055d97f9a9e67d8ee8ae81bbf59a4b846a145d9f.tar.gz
Shaarli-055d97f9a9e67d8ee8ae81bbf59a4b846a145d9f.tar.zst
Shaarli-055d97f9a9e67d8ee8ae81bbf59a4b846a145d9f.zip
Merge pull request #1695 from ArthurHoaro/fix/ut-curl
Diffstat (limited to 'application/Utils.php')
-rw-r--r--application/Utils.php1
1 files changed, 1 insertions, 0 deletions
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)
323 IntlDateFormatter::LONG, 323 IntlDateFormatter::LONG,
324 $time ? IntlDateFormatter::LONG : IntlDateFormatter::NONE 324 $time ? IntlDateFormatter::LONG : IntlDateFormatter::NONE
325 ); 325 );
326 $formatter->setTimeZone($date->getTimezone());
326 327
327 return $formatter->format($date); 328 return $formatter->format($date);
328} 329}