From: Andrey Kutejko Date: Thu, 13 Feb 2014 21:15:37 +0000 (+0200) Subject: utc in timestamps X-Git-Tag: 0.5~3 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=706b6c3ed108320e0fc4471e41e413eb27ee90cb;p=ipf.git utc in timestamps --- diff --git a/ipf/orm/template/listener/timestampable.php b/ipf/orm/template/listener/timestampable.php index b564067..67afd8c 100644 --- a/ipf/orm/template/listener/timestampable.php +++ b/ipf/orm/template/listener/timestampable.php @@ -37,11 +37,11 @@ class IPF_ORM_Template_Listener_Timestampable return new IPF_ORM_Expression($options['expression']); } else { if ($options['type'] == 'date') { - return date($options['format'], time()); + return gmdate($options['format']); } else if ($options['type'] == 'timestamp') { - return date($options['format'], time()); + return gmdate($options['format']); } else { - return time(); + return gmmktime(); } } }