From a5c9ff2cb9b5223503a30b08d443b599f61b2ad0 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 22 Jun 2013 18:23:51 -0700 Subject: [PATCH] Fixed: Date wouldn't display under some circumstances. --- e107_handlers/date_handler.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/e107_handlers/date_handler.php b/e107_handlers/date_handler.php index 2d00b5b24..4f09a97b7 100644 --- a/e107_handlers/date_handler.php +++ b/e107_handlers/date_handler.php @@ -87,8 +87,7 @@ class convert } break; } - - + return strftime($mask, $datestamp); } @@ -102,7 +101,7 @@ class convert function convert($string=null, $mask = 'inputdate') { if($string == null) return false; - return is_integer($string) ? $this->convert_date($string, $mask) : $this->toTime($string, $mask); + return is_numeric($string) ? $this->convert_date($string, $mask) : $this->toTime($string, $mask); }