From c7c71724dec2a6ed633cc97a35be604540d35606 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 15 Jan 2011 18:43:49 +0100 Subject: - fix "now" in multischedule --- pages/multischedule.ecpp | 4 ++-- 1 file 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 -- cgit v1.2.3