1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Set default timezone in init_session().

This commit is contained in:
Lóna Lore
2016-12-13 21:31:59 +01:00
parent e25ead78df
commit 2f2b3cc7c0
2 changed files with 39 additions and 21 deletions

View File

@@ -219,6 +219,11 @@ class e_user_model extends e_admin_model
return ($this->isAdmin() ? $this->get('user_perms') : false);
}
final public function getTimezone()
{
return ($this->get('user_timezone') ? $this->get('user_timezone') : 'UTC');
}
/**
* DEPRECATED - will be removed or changed soon (see e_session)
* @return string