diff --git a/.all-contributorsrc b/.all-contributorsrc index cb3551ec970..925998b9009 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -21,6 +21,15 @@ "code" ] }, + { + "login": "sdecalom", + "name": "Sebastien DECALOM", + "avatar_url": "https://avatars.githubusercontent.com/u/3275377?s=96&v=4", + "profile": "https://github.com/sdecalom", + "contributions": [ + "code" + ] + } { "login": "LeeSaferite", "name": "Lee Saferite", diff --git a/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Time/Created.php b/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Time/Created.php index 63dd3e1caff..f7ff3951716 100644 --- a/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Time/Created.php +++ b/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Time/Created.php @@ -35,6 +35,7 @@ protected function _getFormat($date) } return null; } + /** * Set created date * Set created date in UTC time zone @@ -53,7 +54,7 @@ public function beforeSave($object) } else { // convert to UTC $zendDate = Mage::app()->getLocale()->utcDate(null, $date, true, $this->_getFormat($date)); - $object->setData($attributeCode, $zendDate->getIso()); + $object->setData($attributeCode, $zendDate->toString('yyyy-MM-dd HH:mm:ss')); } return $this;