diff --git a/db/migrate/000105_support.sql b/db/migrate/000105_promo_additions.sql similarity index 100% rename from db/migrate/000105_support.sql rename to db/migrate/000105_promo_additions.sql diff --git a/db/migrate/000105_support_2.sql b/db/migrate/000106_support_2.sql similarity index 100% rename from db/migrate/000105_support_2.sql rename to db/migrate/000106_support_2.sql diff --git a/include/library/Crunchbutton/Support.php b/include/library/Crunchbutton/Support.php index 52ceb4647..1c5d1f98e 100644 --- a/include/library/Crunchbutton/Support.php +++ b/include/library/Crunchbutton/Support.php @@ -11,8 +11,10 @@ class Crunchbutton_Support extends Cana_Table { ->table('support') ->idVar('id_support') ->load($id); - date_default_timezone_set('UTC'); // always save in utc - $this->datetime = date('Y-m-d H:i:s e'); + if(!$id) { + date_default_timezone_set('UTC'); // always save in utc + $this->datetime = date('Y-m-d H:i:s e'); + } } public function queNotify() {