mirror of
https://github.com/processwire/processwire.git
synced 2025-08-20 21:42:23 +02:00
Updates for processwire/processwire-issues#1467
This commit is contained in:
@@ -170,9 +170,9 @@ class WireDateTime extends Wire {
|
|||||||
if(empty($str)) return '';
|
if(empty($str)) return '';
|
||||||
|
|
||||||
// already a timestamp
|
// already a timestamp
|
||||||
if(ctype_digit(ltrim($str, '-'))) return (int) $str;
|
if(ctype_digit(ltrim("$str", '-'))) return (int) $str;
|
||||||
|
|
||||||
$format = trim($format);
|
$format = trim("$format");
|
||||||
if(!strlen($format)) return strtotime($str);
|
if(!strlen($format)) return strtotime($str);
|
||||||
|
|
||||||
// use PHP 5.3's date parser if its available
|
// use PHP 5.3's date parser if its available
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user