aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 602c46658..02460af69 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -99,6 +99,9 @@ class FreshRSS extends Minz_FrontController {
Minz_Session::_param('language', $language);
Minz_Translate::init($language);
+
+ $timezone = isset(FreshRSS_Context::$user_conf) ? FreshRSS_Context::$user_conf->timezone : '';
+ date_default_timezone_set($timezone != '' ? $timezone : '' . ini_get('date.timezone'));
}
private static function getThemeFileUrl($theme_id, $filename) {