summaryrefslogtreecommitdiff
path: root/pages/multischedule.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/multischedule.ecpp')
-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