You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whilst thinking to fix a small error I ran into several strange issues occuring in customer edit view in adminthtml (customer/edit). Several things are unexpected. Let me explain
Local Time now is May 9 4:32 PM (UTC Now = May 9 3:32)
Local Timezone Amsterdam/Netherlands
Local Account creation date is July 27 2015 at 8:38 AM
Below are some strange things
The last login date is very strange. Year is incorrect. Time is minutes off.
The account creation date is not 7:38 AM it was 8:38 AM (i have also jus confirmed this by creating a new account. Even stranger , the order datetime is 4:32 PM but the account creation datetime - which occured at the same time - shows as 3:32 PM)
So there seem to be 2 problems
getLastLoginDate / logindate date does not seem correct
(however the localized LastLoginStore is! correct)
but the same date getter for getStoreCreateDate is not! correct and is 1 hour off (here I would expect 2 lines als showing the alternative localized version)
I hope it is a little clear
this image was created by changing the if/else in Template for block Mage_Adminhtml_Block_Customer_Edit_Tab_View
formatdate() in Mage_Core_Helper_Data has a check for instanceof zend_date but the date passed in getLastLoginDate() in Mage_Adminhtml_Block_Customer_Edit_Tab_View is a member of Mage_Core_Helper_Data and thus returns false
As a result strtotime is performed on the date object here
A possible fix is to add the following to getLastLoginDate() here
$date = $this->getCustomerLog()->getLoginAtTimestamp();
if ($date) {
$date = new Zend_Date($date, Zend_Date::TIMESTAMP);
Whilst thinking to fix a small error I ran into several strange issues occuring in customer edit view in adminthtml (customer/edit). Several things are unexpected. Let me explain
Below are some strange things
So there seem to be 2 problems
(however the localized LastLoginStore is! correct)
I hope it is a little clear
this image was created by changing the if/else in Template for block Mage_Adminhtml_Block_Customer_Edit_Tab_View
possibly related: https://magento.stackexchange.com/questions/38143/customer-created-logged-in-timestamps-in-admin
The text was updated successfully, but these errors were encountered: