mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Fix timestamp matching regex.
This commit is contained in:
parent
9eb023f7ef
commit
c70c4e40a5
@ -541,7 +541,7 @@ class Principal {
|
|||||||
}
|
}
|
||||||
else if ( $k == 'modified'
|
else if ( $k == 'modified'
|
||||||
&& isset($field_values->{$k})
|
&& isset($field_values->{$k})
|
||||||
&& preg_match('{^([23]\d\d\d[01]\d[0123])T?([012]\d[0-5]\d[0-5]\d)$}', $field_values->{$k}, $matches) ) {
|
&& preg_match('{^([23]\d\d\d[01]\d[0123]\d)T?([012]\d[0-5]\d[0-5]\d)$}', $field_values->{$k}, $matches) ) {
|
||||||
$sql_params[$param_name] = $matches[1] . 'T' . $matches[2];
|
$sql_params[$param_name] = $matches[1] . 'T' . $matches[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user