diff options
| author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-11-02 09:46:33 +0100 |
|---|---|---|
| committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-11-02 09:46:33 +0100 |
| commit | 762dcd115a0b1e67eeabcfd5adac422ae6bec744 (patch) | |
| tree | 1402b4937f0e0abd26de07512b41ee9e075f29f7 /recipes/mythtv/mythplugins/MythBackend.php.patch | |
| parent | dfac41b5e2fe1215d4ec4282af4040219d89dc22 (diff) | |
| parent | d88287ca8aad65a2e44fe7c18a40bb6f8160479d (diff) | |
Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/mythtv/mythplugins/MythBackend.php.patch')
| -rw-r--r-- | recipes/mythtv/mythplugins/MythBackend.php.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/mythtv/mythplugins/MythBackend.php.patch b/recipes/mythtv/mythplugins/MythBackend.php.patch new file mode 100644 index 0000000000..95cf86e49f --- /dev/null +++ b/recipes/mythtv/mythplugins/MythBackend.php.patch @@ -0,0 +1,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; |
