aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/dvbtime.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-01-15 20:19:14 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-01-15 20:19:14 +0000
commit60a9bcb6f7b0e928a836dccd1008b82f837a0461 (patch)
tree298c9d6ab3772176578646c6887df38b11241580 /lib/dvb/dvbtime.cpp
parente68ab3a6255de286aad4f503ee9929d0c503ebcc (diff)
downloadenigma2-60a9bcb6f7b0e928a836dccd1008b82f837a0461.tar.gz
enigma2-60a9bcb6f7b0e928a836dccd1008b82f837a0461.zip
use timedifference from eDVBLocalTimeHandler for time() calls in python
Diffstat (limited to 'lib/dvb/dvbtime.cpp')
-rw-r--r--lib/dvb/dvbtime.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dvb/dvbtime.cpp b/lib/dvb/dvbtime.cpp
index 6c2df6c2..7684bfa4 100644
--- a/lib/dvb/dvbtime.cpp
+++ b/lib/dvb/dvbtime.cpp
@@ -148,6 +148,11 @@ eDVBLocalTimeHandler::~eDVBLocalTimeHandler()
instance=0;
for (std::map<iDVBChannel*, channel_data>::iterator it=m_knownChannels.begin(); it != m_knownChannels.end(); ++it)
delete it->second.tdt;
+ if (ready())
+ {
+ eDebug("set RTC to previous valid time");
+ setRTC(nowTime());
+ }
}
void eDVBLocalTimeHandler::readTimeOffsetData( const char* filename )