php - Calendar app take value date(January 1st, 1970) as default in frontend if device language is english[Hongkong SAR china] -


calendar app take value date(january 1st, 1970) default in frontend if device language english[hongkong sar china] in website based on magento framework.is there solution current time? , problem in internet explorer.

here screenshot

finally problem solved. , code here, ( works in browser because of constant english[us] time format , doesn't care browser's language.)

before,

 $currentdate = new zend_date(mage::getmodel('core/date')->timestamp()); 

after,

$currentdate = new zend_date(mage::getmodel('core/date')->timestamp(),null, "en_us");


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -