mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
allow 1-digit day and month, as suggested by Manfred Herr (Digitask GmbH)
This commit is contained in:
parent
3435f58d39
commit
290dd01868
@ -464,7 +464,7 @@
|
|||||||
if (isset($values[$date]) && !is_numeric($date))
|
if (isset($values[$date]) && !is_numeric($date))
|
||||||
{
|
{
|
||||||
// convert german DD.MM.YYYY format into ISO YYYY-MM-DD format
|
// convert german DD.MM.YYYY format into ISO YYYY-MM-DD format
|
||||||
$values[$date] = ereg_replace('([0-9]{2}).([0-9]{2}).([0-9]{4})','\3-\2-\1',$values[$date]);
|
$values[$date] = ereg_replace('([0-9]{1,2}).([0-9]{1,2}).([0-9]{4})','\3-\2-\1',$values[$date]);
|
||||||
// remove fractures of seconds if present at the end of the string
|
// remove fractures of seconds if present at the end of the string
|
||||||
if (ereg('(.*)\.[0-9]+',$values[$date],$parts)) $values[$date] = $parts[1];
|
if (ereg('(.*)\.[0-9]+',$values[$date],$parts)) $values[$date] = $parts[1];
|
||||||
$values[$date] = strtotime($values[$date]);
|
$values[$date] = strtotime($values[$date]);
|
||||||
|
Loading…
Reference in New Issue
Block a user