mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix error when interval is hours only
This commit is contained in:
parent
51d4c3bda0
commit
dba4ea1c36
@ -13,3 +13,8 @@ Version 1.5.2
|
|||||||
- allow to filters users shown by `UserPickerType` based on flags. This flags do an additional filter based on the flags assigned in permissions groups;
|
- allow to filters users shown by `UserPickerType` based on flags. This flags do an additional filter based on the flags assigned in permissions groups;
|
||||||
- add a method to filters users by permissions groups flags in `UserRepository`
|
- add a method to filters users by permissions groups flags in `UserRepository`
|
||||||
|
|
||||||
|
Master branch
|
||||||
|
=============
|
||||||
|
|
||||||
|
- fix error when interval is hour only
|
||||||
|
|
||||||
|
@ -92,8 +92,8 @@ class NativeDateIntervalType extends DateIntervalType
|
|||||||
|
|
||||||
return $current.$unit;
|
return $current.$unit;
|
||||||
|
|
||||||
} elseif (\preg_match('/([0-9]{2}\:[0-9]{2}:[0-9]{2})/', $v) === 1) {
|
} elseif (\preg_match('/([0-9]{2}\:[0-9]{2}:[0-9]{2})/', $current) === 1) {
|
||||||
$tExploded = explode(':', $v);
|
$tExploded = explode(':', $current);
|
||||||
$intervalSpec = 'T';
|
$intervalSpec = 'T';
|
||||||
$intervalSpec.= $tExploded[0].'H';
|
$intervalSpec.= $tExploded[0].'H';
|
||||||
$intervalSpec.= $tExploded[1].'M';
|
$intervalSpec.= $tExploded[1].'M';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user