Post by prashoo7 » Wed May 30, 2012 2:45 pm

I am currently planning to run a store in opencart 1.5.2.1 for india ,my hosting is on godaddy so when i create a order it it take server time of godaddy, so how do i change the timezone to india?

i have already tried changing the startup.php file but it still take godaddy server time.


Thank you..

Prashant Gupta

Newbie

Posts

Joined
Wed May 30, 2012 2:40 pm

Post by Avvici » Thu May 31, 2012 1:06 am

Open system/startup.php and find:

Code: Select all

if (!ini_get('date.timezone')) {
	date_default_timezone_set('UTC');
}
For India change it to this:

Code: Select all

if (!ini_get('date.timezone')) {
	date_default_timezone_set('Indian/Antananarivo');
}

Here are the other INDIAN timezones:
http://www.php.net/manual/en/timezones.indian.php

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by prashoo7 » Thu May 31, 2012 2:34 am

Thanks for your reply...
I found out the solution at
http://forum.opencart.com/viewtopic.php ... t=timezone


And it worked.

Newbie

Posts

Joined
Wed May 30, 2012 2:40 pm
Who is online

Users browsing this forum: No registered users and 50 guests