diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-26 17:09:35 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-26 17:09:35 +0100 |
commit | e55c7f6f37075915723adf994befcd5e56084915 (patch) | |
tree | 959b866840d338339c4b7d1235de455554579ab1 /bin | |
parent | 90642b56d1d890e851636b55f1f9fe680e1f2e1d (diff) | |
download | istreamdev-e55c7f6f37075915723adf994befcd5e56084915.tar.gz istreamdev-e55c7f6f37075915723adf994befcd5e56084915.tar.bz2 |
Time fix
Diffstat (limited to 'bin')
-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; } } |