Modify timezone for magento installation

Modify timezone for magento installation

Note : Just for demo purpose,
use it only if you need it,
you can also override file by making copy of file in ‘local’ folder.

Open file : /app/Mage.php

    self::$_isInstalled = false;
	$localConfig = simplexml_load_file($localConfigFile);
+   // date_default_timezone_set('UTC');
+   //annet-pk 2011.06.23
+   date_default_timezone_set('Asia/Calcutta'); 
	if (($date = $localConfig->global->install->date) && strtotime($date)) {
	self::$_isInstalled = true;

Share on Facebook

About Pragnesh Karia

Pragnesh Karia, Open Source Enthusiast, Software Professional, Software Developer, Technical Lead ,Magento, Joomla ,Joomla LMS , Moodel LMS ,PHP ,Mysql, Ajax, Javascript, Jquery, Linux, Fan of Open Sources , Annet Technologies , SEO Analyst , Mootools