mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Timestamp: Support *about any English textual datetime description*
This commit is contained in:
parent
ceec8ab017
commit
25dd5ff435
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,10 @@ class Timestamp extends PropertyBehavior
|
|||
|
||||
public function toDb($value, $_)
|
||||
{
|
||||
if (! ctype_digit($value)) {
|
||||
$value = strtotime($value);
|
||||
}
|
||||
|
||||
return $value * 1000.0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue