forked from extern/egroupware
Bday length checking
This commit is contained in:
parent
ab11b27114
commit
ace6936802
@ -530,6 +530,8 @@
|
|||||||
} elseif ($value=="BDAY") {
|
} elseif ($value=="BDAY") {
|
||||||
$tmp = split("/",$buffer[$value]); # 12/31/1969 -> 1969-12-31
|
$tmp = split("/",$buffer[$value]); # 12/31/1969 -> 1969-12-31
|
||||||
if ($tmp[0]) {
|
if ($tmp[0]) {
|
||||||
|
if (strlen($tmp[0]) == 1) { $tmp[0] = '0'.$tmp[0]; }
|
||||||
|
if (strlen($tmp[0]) == 1) { $tmp[1] = '0'.$tmp[1]; }
|
||||||
$entry .= "BDAY:". $tmp[2]."-".$tmp[0]."-".$tmp[1]."\n";
|
$entry .= "BDAY:". $tmp[2]."-".$tmp[0]."-".$tmp[1]."\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user