summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin <martin@localhost.localdomain>2011-01-15 18:43:49 +0100
committermartin <martin@localhost.localdomain>2011-01-15 18:43:49 +0100
commitc7c71724dec2a6ed633cc97a35be604540d35606 (patch)
tree7f16c061408dc497f5deaedb1146161a1123fdde
parentb1e689462b14509764e08c2756e9cace292b650d (diff)
downloadvdr-plugin-live-c7c71724dec2a6ed633cc97a35be604540d35606.tar.gz
vdr-plugin-live-c7c71724dec2a6ed633cc97a35be604540d35606.tar.bz2
- fix "now" in multischedule
-rw-r--r--pages/multischedule.ecpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/multischedule.ecpp b/pages/multischedule.ecpp
index 9b7073a..d8ea5c4 100644
--- a/pages/multischedule.ecpp
+++ b/pages/multischedule.ecpp
@@ -169,7 +169,7 @@ pageTitle = trVDR("Schedule");
times_start.clear();
// calculate time of midnight (localtime) and convert back to GMT
- time_t now = time(NULL);
+ time_t now = (time(NULL)/3600)*3600;
time_t now_local = time(NULL);
struct tm tm_r;
if ( localtime_r( &now_local, &tm_r ) == 0 ) {
@@ -217,7 +217,7 @@ pageTitle = trVDR("Schedule");
}
}
// add now
- times_start.push_back( 3600 * ( now /3600 ) );
+ times_start.push_back( now );
// sort the times
std::sort( times_start.begin(), times_start.end() );
// delete every time which has already passed