Post by wookiesloth » Sat Apr 09, 2011 11:40 pm

OpenCart © 2009-2011 All Rights Reserved.
Version 1.4.9.4

Would it be possible if in admin/index.php?route=setting/setting (System > Settings) under lets say the local tab there is a dropdown list of all available timezones very much like the dropdown in the registration area of this forum.

OR

Apply the timeszone to the current store Country

Thanks
Zac

Newbie

Posts

Joined
Sat Apr 09, 2011 10:28 pm

Post by SXGuy » Sun Apr 10, 2011 1:27 am

You can change the default timezone by changing line 50 in "system/startup.php so i see no point.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by wookiesloth » Sun Apr 10, 2011 1:42 am

I have, date_default_timezone_set('Pacific/Auckland'); and it still seems to point to America and no I have not set the php.ini timezone unless it is pulling it from the server php.ini, which is rather stupid as we all know that a website can be hosted on one side of the planet and be used on the opposite side.

Besides in the interest of being user friendly I considered it a useful "feature" for people who don't want to edit the core system files, more over you will have re-apply your "hack" every time an update is applied which is counter productive wouldn't you agree.

Newbie

Posts

Joined
Sat Apr 09, 2011 10:28 pm

Post by mberlant » Sun Apr 10, 2011 9:57 pm

I must agree with wookiesloth. This is problematic in both directions of time zone correction. We do not want coupons to expire hours prematurely; nor do we want time sensitive offers to extend past midnight.

It is a nuisance to edit each store every time there is an upgrade just because that store's server happens to be in another time zone than the store's home location. And, as wookiesloth says, there are many OC users who are either incapable or bashful, or both, of changing core files.

Perhaps a forum member who hosts many stores in many time zones can chime in on how to best address this matter.

Please use proper English at all times, so that all members may understand you.


User avatar
Active Member

Posts

Joined
Sun Mar 13, 2011 8:33 pm

Post by fido-x » Mon Apr 11, 2011 11:08 pm

Have a look here.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by jackcksn » Wed Jun 01, 2011 2:33 am

yes, fido-x right ,but need step to setup .

My time is Malaysia time ,after install "Storetime" extension and setup the extension , change the date_default_timezone_set also not correct .

Finally,i'm succeeded to fixed.

Step follows :
1)Install "Storetime" extension and setup your time zone .
2)IN system/startup.php FIND:

date_default_timezone_set('UTC');

=============
REPLACE WITH:
=============
date_default_timezone_set('Asia/Kuala_Lumpur');

How to get time zone code ? After you setup the "Storetime" extension will showed on below.

Hope can help ,i'm so sorry ,my English poor.

Newbie

Posts

Joined
Wed Jun 01, 2011 2:16 am

Post by sujeet » Tue Feb 04, 2014 2:36 pm

You can simply use this plugin to set timezone of your store from admin panel. No need to go through the code.
http://www.opencart.com/index.php?route ... n_id=15772

Newbie

Posts

Joined
Tue Feb 04, 2014 2:33 pm
Who is online

Users browsing this forum: No registered users and 4 guests