]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
utc in timestamps
authorAndrey Kutejko <andy128k@gmail.com>
Thu, 13 Feb 2014 21:15:37 +0000 (23:15 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Thu, 13 Feb 2014 21:15:37 +0000 (23:15 +0200)
ipf/orm/template/listener/timestampable.php

index b5640670b09ef1744a193f28757e9fce6a2b338f..67afd8cf2fce2d0b2e3acf12b80b978a5eb28ff6 100644 (file)
@@ -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();
             }
         }
     }