diff options
author | Urban Müller | 2015-03-04 16:37:49 +0100 |
---|---|---|
committer | Urban Müller | 2015-03-04 16:37:49 +0100 |
commit | e602c406885f576c925ed05bf32f9a39d24ff764 (patch) | |
tree | 7ffb876c4927810add35edba81477f86e56fc793 /it.class | |
parent | 2481621a8516ba69c177b27db003cc658af5b1c4 (diff) | |
download | itools-e602c406885f576c925ed05bf32f9a39d24ff764.tar.gz itools-e602c406885f576c925ed05bf32f9a39d24ff764.tar.bz2 itools-e602c406885f576c925ed05bf32f9a39d24ff764.zip |
support setting of time only
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -864,7 +864,7 @@ static function gets() */ 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'), $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(); } /** |