aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Context.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Context.php')
-rw-r--r--app/Models/Context.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index 0176e77fa..734458d7f 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -500,4 +500,8 @@ class FreshRSS_Context {
return false;
}
+ public static function defaultTimeZone(): string {
+ $timezone = ini_get('date.timezone');
+ return $timezone != '' ? $timezone : 'UTC';
+ }
}