From afdb893bd1810e2a7b1ee31a756b61d5ccbd43b5 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Thu, 13 Feb 2014 23:15:37 +0200 Subject: [PATCH] utc in timestamps --- ipf/orm/template/listener/timestampable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } } } -- 2.49.0