From e602c406885f576c925ed05bf32f9a39d24ff764 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 4 Mar 2015 16:37:49 +0100 Subject: support setting of time only --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index 59b1ba8..8c4be7f 100644 --- a/it.class +++ b/it.class @@ -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(); } /** -- cgit v1.2.3