If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / Time Zone - getting closer

Time Zone - getting closer

Started by johns4y on 22 Jan 2023, 11:44 PM · Views: 1,408

Results 1 to 3 of 3
22 Jan 2023, 11:44 PM
#1
johns4y avatar

johns4y

New Zenner

Join Date:
Jan 2009
Posts:
93
Plugin Contributions:
0

Time Zone - getting closer

ZC v157.d https://www.jaysmodelkits.com
I am sure this has been raised a few times by now and, after doing a Google search I found out how to change the time zone from USA to New Zealand/Auckland. However, the time is still an hour behind. Is this because ZC doesn't factor in daylight savings? Is there a way to fix this? The header bar in Admin says the time and +0000 GMT so is there a way to add the extra hour?
Cheers. John.

23 Jan 2023, 12:55 AM
#2
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: Time Zone - getting closer

This works for me:
includes/extra_configures/set_time_zone.php line 12

$TZ = 'NZ';  // eg: 'Europe/Oslo'

Shows me current time in NZ with GMT+13.

Zen Cart is telling me it's Monday 23 Jan 2023 13:52:55##+1300 GMT, and Google says
13:54
Monday, 23 January 2023 (GMT+13)
Time in Auckland, New Zealand

Did you try something different?

My site - Pro ZC Help
My portfolio | My plugins

23 Jan 2023, 6:10 AM
#3
johns4y avatar

johns4y

New Zenner

Join Date:
Jan 2009
Posts:
93
Plugin Contributions:
0

Re: Time Zone - getting closer

Thanks for that, that worked.
I used the example in the line of code so put 'New Zealand/Auckland' but putting NZ has corrected the time with the extra hour for summer.
Awesome. Thank you.