Forums / General Questions / How to specify Time Zone since v152 (TimeZone, TZ, GMT)

How to specify Time Zone since v152 (TimeZone, TZ, GMT)

Views: 770

Results 1 to 5 of 5
17 May 2016, 9:52 AM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

How to specify Time Zone since v152 (TimeZone, TZ, GMT)

Assuming you have an up to date PHP and Zen Cart, you no longer need plugins to do this - just edit

includes/extra_configures/set_time_zone.php

and set the time zone variable $TZ for your timezone.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

17 May 2016, 10:26 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to specify Time Zone since v152 (TimeZone, TZ, GMT)

Isn't this or wasn't this the reason for that file specifically? Just curious what initiated this post as for someone that has been working with ZC now for a few years, that seemed like that was all that was needed was the change in the file. Didn't seem like anything "new" now a year and a half later...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 May 2016, 12:30 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: How to specify Time Zone since v152 (TimeZone, TZ, GMT)

Yes, this is the reason for this file. It was introduced in 1.5.2. Prior to that you needed a plugin. That's why I said, "you no longer need plugins to do this."
I had forgotten how to do this, and the search I did led to old plugins and outdated advice. But I'll update the title of this thread so it says "Post 1.5.2" rather than "New" for clarity.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

17 May 2016, 12:50 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to specify Time Zone since v152 (TimeZone, TZ, GMT)

swguy:

Yes, this is the reason for this file. It was introduced in 1.5.2. Prior to that you needed a plugin. That's why I said, "you no longer need plugins to do this."
I had forgotten how to do this, and the search I did led to old plugins and outdated advice. But I'll update the title of this thread so it says "Post 1.5.2" rather than "New" for clarity.

Ahhh, now I get it. Note to self and all those that continue searching for something "newer" to address the timezone issue. Yeah, I know that I find myself trying to recall where it's tucked away but had also stored such a link in a message folder I have for those little tidbits. :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

17 May 2016, 6:13 PM
#5
mamakitty avatar

mamakitty

New Zenner

Join Date:
Aug 2006
Location:
Denver CO
Posts:
65
Plugin Contributions:
0

Re: How to specify Time Zone since v152 (TimeZone, TZ, GMT)

Thank you! This is one of the things I had forgotten since the last time I worked with Zen Cart. You just saved me from searching files :)

Dorothy