Blog: Fix Your Store's Time Zone Offset
If your Zen Cart is installed on a hosted server that is in a different time zone (e.g. your store is based in Australia but is hosted on a server in the USA), the dates and times of your orders and email messages can get confusing. A couple of years ago, gilby created the Time Zone Fix plugin for Zen Cart v1.3.9. It was obviously a good idea ... because the Zen Cart developers included that functionality in the Zen Cart core, starting with v1.5.0!
If you're in that situation, you need to create a file named time_zone_offset.php and place this file (same file) in two locations:
<?php // Full list of timezones here: https://php.net/manual/en/timezones.php // // You can modify the TZ (Time Zone) by using a named Country/City // eg: // TZ=America/Los_Angeles // TZ=America/Denver; // TZ=America/Chicago // TZ=America/Costa_Rica; putenv ('TZ=America/New_York');
Just go to the php.net site to see what time zone is appropriate for your site.
Latest Blog [View All]
If I've helped you on the Zen Cart forums or you've found one of my free plugins helpful, feel free to give a little back by clicking here.