From 53a8d50bb0358641949876455026c52e17c361e4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 22 May 2009 07:04:55 +0000 Subject: [PATCH] "fixed date-time widget to correctly write seconds, eg. if output format is \"Y-m-d H:i:s\"" --- etemplate/inc/class.date_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.date_widget.inc.php b/etemplate/inc/class.date_widget.inc.php index cd8f0d9a79..8e61f8033d 100644 --- a/etemplate/inc/class.date_widget.inc.php +++ b/etemplate/inc/class.date_widget.inc.php @@ -626,7 +626,7 @@ class date_widget { for ($n = 0,$str = ''; $n < strlen($data_format); ++$n) { - if (strpos('YmdHi',$c = $data_format[$n]) !== false) + if (strpos('YmdHis',$c = $data_format[$n]) !== false) { $str .= sprintf($c=='Y'?'%04d':'%02d',$value[$c]); }