mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Update DateTime class to use timezone information from Session
This commit is contained in:
parent
e2b2861e81
commit
12ee156374
2 changed files with 11 additions and 11 deletions
|
|
@ -62,9 +62,9 @@ class DateTime
|
|||
*/
|
||||
public static function getTimezoneForCurrentUser()
|
||||
{
|
||||
if (isset($_SESSION['timezone']) && $_SESSION['timezone'])
|
||||
if (isset($_SESSION['RHYMIX']['timezone']) && $_SESSION['RHYMIX']['timezone'])
|
||||
{
|
||||
return $_SESSION['timezone'];
|
||||
return $_SESSION['RHYMIX']['timezone'];
|
||||
}
|
||||
elseif ($default = Config::get('locale.default_timezone'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue