mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
"fixed date-time widget to correctly write seconds, eg. if output format is \"Y-m-d H:i:s\""
This commit is contained in:
parent
9ebd2fab61
commit
53a8d50bb0
@ -626,7 +626,7 @@ class date_widget
|
|||||||
{
|
{
|
||||||
for ($n = 0,$str = ''; $n < strlen($data_format); ++$n)
|
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]);
|
$str .= sprintf($c=='Y'?'%04d':'%02d',$value[$c]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user