summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vdr.php5
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