diff options
Diffstat (limited to 'bin/vdr.php')
-rwxr-xr-x | bin/vdr.php | 6 |
1 files changed, 3 insertions, 3 deletions
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; } } |