Timestamp: Support *about any English textual datetime description*

This commit is contained in:
Johannes Meyer 2019-11-08 14:41:08 +01:00
parent ceec8ab017
commit 25dd5ff435

View file

@ -13,6 +13,10 @@ class Timestamp extends PropertyBehavior
public function toDb($value, $_)
{
if (! ctype_digit($value)) {
$value = strtotime($value);
}
return $value * 1000.0;
}
}