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

If timezone is not set by user, need to return an empty string in order to use default timezone is set for e107.

This commit is contained in:
Lóna Lore
2016-12-13 21:42:57 +01:00
parent 2f2b3cc7c0
commit 22a40e318b

View File

@@ -221,7 +221,9 @@ class e_user_model extends e_admin_model
final public function getTimezone() final public function getTimezone()
{ {
return ($this->get('user_timezone') ? $this->get('user_timezone') : 'UTC'); // If timezone is not set, we return an empty string in order to use the
// default timezone is set for e107.
return ($this->get('user_timezone') ? $this->get('user_timezone') : '');
} }
/** /**