From e55c7f6f37075915723adf994befcd5e56084915 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Fri, 26 Mar 2010 17:09:35 +0100 Subject: Time fix --- bin/vdr.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/vdr.php b/bin/vdr.php index 154a244..045bb4e 100755 --- a/bin/vdr.php +++ b/bin/vdr.php @@ -524,8 +524,8 @@ function vdrgetepg($channel, $time, $day, $programs, $extended) case "day": // Get all day - $requesteddate = $currentdate - ($currentdate % (3600*24)) + ($day * (3600*24)) - 3600; - if ($time != "") + $requesteddate = $currentdate - ($currentdate % (3600*24)) + ($day * (3600*24)); + if ($time) { $requestedtime = ((int) substr($time, 0, 2) * 3600) + ((int) substr($time, 2) * 60); $requesteddate += $requestedtime; @@ -542,7 +542,7 @@ function vdrgetepg($channel, $time, $day, $programs, $extended) default: $requestedday = $currentdate - ($currentdate % (3600*24)) + ($day * (3600*24)); $requestedtime = ((int) substr($time, 0, 2) * 3600) + ((int) substr($time, 2) * 60); - $requesteddate = $requestedday + $requestedtime - 3600; + $requesteddate = $requestedday + $requestedtime; break; } } -- cgit v1.2.3