From db375962a4c5c4170d24734e413a52590f9409b6 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Sun, 28 Mar 2010 17:18:04 +0200 Subject: changed timers date format --- bin/vdr.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3