diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-28 17:18:04 +0200 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-28 17:18:04 +0200 |
commit | db375962a4c5c4170d24734e413a52590f9409b6 (patch) | |
tree | 3b1264779d080c9a5bf51a68872d4838b483e615 /bin | |
parent | 4c9ff47ed18ceb99a2b36d735c2bd14ad5446ceb (diff) | |
download | istreamdev-db375962a4c5c4170d24734e413a52590f9409b6.tar.gz istreamdev-db375962a4c5c4170d24734e413a52590f9409b6.tar.bz2 |
changed timers date format
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vdr.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/vdr.php b/bin/vdr.php index 65979d8..f1bd495 100755 --- a/bin/vdr.php +++ b/bin/vdr.php @@ -683,7 +683,7 @@ function vdrlisttimers() $newtimer['active'] = ($typearray[1] & 0x1)?"1":0; $newtimer['channumber'] = $timerarray[1]; $newtimer['channame'] = vdrgetchanname($timerarray[1]); - $newtimer['date'] = $timerarray[2]; + $newtimer['date'] = preg_replace("$-$", "/", $timerarray[2]); $newtimer['starttime'] = $timerarray[3]; $newtimer['endtime'] = $timerarray[4]; $newtimer['running'] = ($typearray[1] & 0x8)?1:0; @@ -722,6 +722,9 @@ function vdrsettimer($prevtimer, $channum, $date, $stime, $etime, $desc, $active $ret = array(); + // Convert date to VDR format + $date = preg_replace("$/$", "-", $date); + if ($prevtimer == "") $command = "NEWT " .$active .":" .$channum .":" .$date .":" .$stime .":" .$etime .":99:99:" .$desc; else |