mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Joomla: Particles are not using selected timezone (#2072)
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# 5.4.18
|
||||
## mm/dd/2017
|
||||
|
||||
1. [Joomla](#joomla)
|
||||
1. [](#bugfix)
|
||||
- Particles are not using selected timezone (#2072)
|
||||
|
||||
# 5.4.17
|
||||
## 08/25/2017
|
||||
|
||||
@@ -100,11 +100,15 @@ class Theme extends AbstractTheme
|
||||
|
||||
if (!($date instanceof \JDate)) {
|
||||
// Create localized JDate object.
|
||||
$date = \twig_date_converter($env, $date, $timezone);
|
||||
$date = new \JDate($date->getTimestamp(), $date->getTimezone());
|
||||
$twig_date = \twig_date_converter($env, $date, $timezone);
|
||||
|
||||
$date = new \JDate($twig_date->getTimestamp());
|
||||
$date->setTimezone($twig_date->getTimezone());
|
||||
} elseif ($timezone) {
|
||||
$date->setTimezone($timezone);
|
||||
}
|
||||
|
||||
return $date->format($format);
|
||||
return $date->format($format, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user