Respect user's timezone in Utils::dateToString().
This commit is contained in:
parent
9a608bcc65
commit
904cff732c
1 changed files with 4 additions and 3 deletions
|
|
@ -752,9 +752,10 @@ class Utils
|
|||
}
|
||||
|
||||
$timestamp = $dateTime->getTimestamp();
|
||||
$timezone = Session::get(SESSION_TIMEZONE, DEFAULT_TIMEZONE);
|
||||
$format = Session::get(SESSION_DATE_FORMAT, DEFAULT_DATE_FORMAT);
|
||||
|
||||
return self::timestampToString($timestamp, false, $format);
|
||||
return self::timestampToString($timestamp, $timezone, $format);
|
||||
}
|
||||
|
||||
public static function timestampToString($timestamp, $timezone, $format)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue