Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <!--
- /**
- * Magento
- *
- * @category Custom
- * @package Custom_Datefix
- */
- -->
- <config>
- <modules>
- <Custom_Datefix>
- <version>1.0.0</version>
- </Custom_Datefix>
- </modules>
- <global>
- <blocks>
- <adminhtml>
- <rewrite>
- <customer_edit_tab_view>Custom_Datefix_Block_Customer_Edit_Tab_View</customer_edit_tab_view>
- </rewrite>
- </adminhtml>
- </blocks>
- </global>
- </config>
- <?xml version="1.0"?>
- <!--
- /**
- * Magento
- *
- * @category Custom
- * @package Custom_Datefix
- */
- -->
- <config>
- <modules>
- <Custom_Datefix>
- <version>1.0.0</version>
- </Custom_Datefix>
- </modules>
- <global>
- <blocks>
- <adminhtml>
- <rewrite>
- <customer_edit_tab_view>Custom_Datefix_Block_Customer_Edit_Tab_View</customer_edit_tab_view>
- </rewrite>
- </adminhtml>
- </blocks>
- </global>
- </config>
- <?php
- /**
- * Magento
- *
- *
- * Customer account form block
- *
- * @category Custom
- * @package Custom_Datefix
- */
- class Custom_Datefix_Block_Customer_Edit_Tab_View
- extends Mage_Adminhtml_Block_Customer_Edit_Tab_View
- {
- /**
- * Get customer last login date
- *
- * @return string
- */
- public function getLastLoginDate()
- {
- if ($date = $this->getCustomerLog()->getLoginAtTimestamp()) {
- $date = Mage::app()->getLocale()->storeDate(
- $this->getCustomer()->getStoreId(),
- $date,
- true
- );
- return $this->formatDate($date, Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true);
- }
- return Mage::helper('customer')->__('Never');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement