Skip to content

Commit

Permalink
[bug-OpenMage#980] Error editing a customer that doesn't have a creat…
Browse files Browse the repository at this point in the history
…ed_at timestamp

refs: OpenMage#923
  • Loading branch information
colinmollenhour authored and edannenberg committed Aug 20, 2020
1 parent fe6716c commit 9e8cba0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,18 @@ public function getCustomerLog()
*/
public function getCreateDate()
{
if ( ! $this->getCustomer()->getCreatedAt()) {
return null;
}
return $this->_getCoreHelper()->formatDate($this->getCustomer()->getCreatedAt(),
Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true);
}

public function getStoreCreateDate()
{
if ( ! $this->getCustomer()->getCreatedAt()) {
return null;
}
$date = Mage::app()->getLocale()->storeDate(
$this->getCustomer()->getStoreId(),
$this->getCustomer()->getCreatedAtTimestamp(),
Expand Down

0 comments on commit 9e8cba0

Please sign in to comment.