Hello
Is there a way I can change the admin time zone to show where I actually am? There is a 6 hours difference which creates some small issues store-wise
using zc 1.5
Thanks for the help!![]()
Hello
Is there a way I can change the admin time zone to show where I actually am? There is a 6 hours difference which creates some small issues store-wise
using zc 1.5
Thanks for the help!![]()
www.alepia.ch Alepia suisse
I believe Zen Cart simply takes the server time zone, so this is most likely an issue in your php.ini file.
Can you advise what setting your hosting provider has for date.timezone? You can check the php.ini info by uploading a PHP file with the command phpinfo() and then reviewing the output via browser.
UK Web Hosting for Designers & Developers by TerraNetwork (Norwich, UK) for websites of all sizes.
Zen Cart Web Hosting from £3.33 per month
Contact info AT terranetwork DOT net for quotes and advice
In your php.ini file type in date.timezone=-0700GMT
The numbers in red are your time zone relevant to the gmt.
Another way to universally change your website is to add this line to your .htaccess file:
SetEnv TZ 'America/New_York'
The allowable time zone names can be found at:
http://www.php.net/manual/en/timezones.php
That used to be acceptable, before PHP 5.1.0.
But, since PHP 5.1.0, the *correct* way is to set date.timezone in php.ini
Quote from PHP documentation:That said, there's nothing wrong with doing both ;)Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ environment variable.
To avoid these errors, use the INI setting date.timezone to set the default timezone.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks