diff --git a/.all-contributorsrc b/.all-contributorsrc index b1228898bfe..d3a7af28be8 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -23,6 +23,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 def2dac6b72..f8c3d16c07e 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 @@ -36,6 +36,7 @@ protected function _getFormat($date) } return null; } + /** * Set created date * Set created date in UTC time zone @@ -54,7 +55,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;