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:
@@ -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') : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user