summaryrefslogtreecommitdiff
path: root/recipes/mythplugins/files/MythBackend.php.patch
blob: 95cf86e49fcb9b1008f21b7e82d24c0d704f92c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: mythplugins-0.22rc1/mythweb/classes/MythBackend.php
===================================================================
--- mythplugins-0.22rc1.orig/mythweb/classes/MythBackend.php
+++ mythplugins-0.22rc1/mythweb/classes/MythBackend.php
@@ -111,7 +111,7 @@ class MythBackend {
     }
 
     public function setTimezone() {
-        if (!is_string($_SESSION['backend']['timezone']['value']) || $_SESSION['backend']['timezone']['last_check_time'] - time() > 60*60*24) {
+        if (!is_string($_SESSION['backend']['timezone']['value']) || time() - $_SESSION['backend']['timezone']['last_check_time'] () > 60*60*24) {
             $response = $this->sendCommand('QUERY_TIME_ZONE');
             $timezone = str_replace(' ', '_', $response[0]);
             $_SESSION['backend']['timezone']['value']           = $timezone;