summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2011-11-08 17:33:33 +0000
committerChristian Schneider2011-11-08 17:33:33 +0000
commit684195f906f6c274ef6e95d46660fe9516311b8f (patch)
treee3b9769920b07173b49c23d82c7942b5d069fa1d /it.class
parent75dec80e40bdff05d84fe02ebde51eebedbf3989 (diff)
downloaditools-684195f906f6c274ef6e95d46660fe9516311b8f.tar.gz
itools-684195f906f6c274ef6e95d46660fe9516311b8f.tar.bz2
itools-684195f906f6c274ef6e95d46660fe9516311b8f.zip
Change it::date() to treat float as timestamp, only string with dots like 10.45 are handed to strtotime()
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 0b82acd..edfc7e1 100644
--- a/it.class
+++ b/it.class
@@ -723,7 +723,7 @@ static function date($format = "", $stamp = null)
if (!isset($stamp))
$stamp = time();
- else if (!is_int($stamp) && !ctype_digit($stamp) && (!is_float($stamp) || strstr($stamp, '.')))
+ else if (is_string($stamp) && !ctype_digit($stamp))
$stamp = strtotime($stamp);
list($name, $language) = explode(":", $format);