diff options
author | Christian Helbling | 2017-02-07 16:54:52 +0100 |
---|---|---|
committer | Christian Helbling | 2017-02-07 16:54:52 +0100 |
commit | e5aac2298465e3b78398af5b17198bc527ca3d33 (patch) | |
tree | 3961eab1e50cf44406a0ec9ec257c3fd51647fb3 /it.class | |
parent | f82923f96c15e957f4265f21597cd2cdc994482f (diff) | |
download | itools-e5aac2298465e3b78398af5b17198bc527ca3d33.tar.gz itools-e5aac2298465e3b78398af5b17198bc527ca3d33.tar.bz2 itools-e5aac2298465e3b78398af5b17198bc527ca3d33.zip |
allow .time-1527 and .time-152715 as time formats for time debug parameter, add more tests for it::time()
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -901,7 +901,7 @@ static function gets() */ static function time() { - return ($t = EDC('time')) ? strtotime(rtrim(it::replace(array('(\d\d\d\d)-(\d\d)-(\d\d)-(\d\d)-(\d\d)(-(\d\d))?' => '$1-$2-$3 $4:$5:$7', '^(\d\d)-(\d\d)(-(\d\d))?' => 'today $1:$2:$4'), $t), ":")) : time(); + return ($t = EDC('time')) ? strtotime(rtrim(it::replace(array('(\d\d\d\d)-(\d\d)-(\d\d)-(\d\d)-(\d\d)(-(\d\d))?' => '$1-$2-$3 $4:$5:$7', '^(\d\d)-?(\d\d)(-?(\d\d))?$' => 'today $1:$2:$4'), $t), ":")) : time(); } /** |