diff options
-rw-r--r-- | it.class | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -723,7 +723,10 @@ static function gets() */ static function date($format = "", $stamp = null) { - $stamp = !isset($stamp) ? time() : (it::match('^\d+$', $stamp) ? $stamp : strtotime($stamp)); + if (!isset($stamp)) + $stamp = time(); + else if(!is_int($stamp) && !ctype_digit($stamp) && (!is_float($stamp) || strstr($stamp, '.'))) + $stamp = strtotime($stamp); list($name, $language) = explode(":", $format); |