aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/Timezones.py4
-rw-r--r--lib/python/enigma_python.i2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Components/Timezones.py b/lib/python/Components/Timezones.py
index 6f71187b..0b6eb79b 100644
--- a/lib/python/Components/Timezones.py
+++ b/lib/python/Components/Timezones.py
@@ -4,6 +4,8 @@ from xml.sax.handler import ContentHandler
import os
import time
+from enigma import *
+
class Timezones:
class parseTimezones(ContentHandler):
def __init__(self, timezones):
@@ -30,7 +32,7 @@ class Timezones:
try:
time.tzset()
except:
- print "Timezone NOT set because your python has problems with time.tzset()"
+ etimezone()
def getTimezoneList(self):
list = []
diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i
index eb814553..a90e2fef 100644
--- a/lib/python/enigma_python.i
+++ b/lib/python/enigma_python.i
@@ -74,6 +74,7 @@ is usually caused by not marking PSignals as immutable.
#include <lib/dvb/frontendparms.h>
#include <lib/driver/avswitch.h>
#include <lib/driver/rfmod.h>
+#include <lib/driver/etimezone.h>
#include <lib/gdi/lcd.h>
#include <lib/dvb_ci/dvbci_ui.h>
@@ -168,6 +169,7 @@ typedef long time_t;
%include <lib/dvb/frontendparms.h>
%include <lib/driver/avswitch.h>
%include <lib/driver/rfmod.h>
+%include <lib/driver/etimezone.h>
%include <lib/gdi/lcd.h>
%include <lib/dvb_ci/dvbci_ui.h>