From 99c2ae7f92feda89e42743dff4cdd1fd76500b2c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 27 Apr 2003 08:50:20 +0000 Subject: [PATCH] added readonly-display for date-time and date-only_time --- etemplate/inc/class.date_widget.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.date_widget.inc.php b/etemplate/inc/class.date_widget.inc.php index 5d2463096a..f780f8a571 100644 --- a/etemplate/inc/class.date_widget.inc.php +++ b/etemplate/inc/class.date_widget.inc.php @@ -101,12 +101,17 @@ { $format += $timeformat; } - $sep = $sep[1]; if ($cell['readonly'] || $readonlys) // is readonly { + $sep = array( + 1 => $sep[1], + 2 => $sep[1], + 3 => ' ', + 4 => ':' + ); for ($str='',$n = $type == 'date-timeonly' ? 3 : 0; $n < count($format); ++$n) { - $str .= ($str != '' ? $sep : ''); + $str .= ($str != '' ? $sep[$n] : ''); $str .= $value[$format[$n]]; } $value = $str;