mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:39:07 +01:00
added readonly-display for date-time and date-only_time
This commit is contained in:
parent
6a1b96229c
commit
99c2ae7f92
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user