summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2014-07-25 17:14:54 +0200
committerUrban Müller2014-07-25 17:15:43 +0200
commit47c5a709980480406d7db3eb414a0df167c75b1d (patch)
tree9dd20dec93bf0f7d939e4a7b5a6d5ac0050a6648 /it.class
parent5f93ec81033fa401e85a64548c73f19e9bc1e147 (diff)
downloaditools-47c5a709980480406d7db3eb414a0df167c75b1d.tar.gz
itools-47c5a709980480406d7db3eb414a0df167c75b1d.tar.bz2
itools-47c5a709980480406d7db3eb414a0df167c75b1d.zip
partial implementation of time() override
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 b8e22a6..64a2f51 100644
--- a/it.class
+++ b/it.class
@@ -870,7 +870,7 @@ static function gets()
static function date($format = "", $stamp = null)
{
if (!isset($stamp))
- $stamp = time();
+ $stamp = EDC('time') ? strtotime(EDC('time')) : time();
else if (is_string($stamp) && !ctype_digit($stamp))
$stamp = strtotime($stamp);