If you're having problems with the PHP configuration on your server, you should be talking to your hosting company for help.
If you're having problems with the PHP configuration on your server, you should be talking to your hosting company for help.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
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.
hi yuto,
you can fix it by going to zc_install/includes/application_top.php and add following line on the top:
ini_set('date.timezone', 'America/Vancouver');
Thank you.
(Remember to restart your server to activate the new settings).
--Gunnel--
www.tusenideer.se
It's much better to have your hosting company properly configure the server.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
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.
note - I am replicating my "real world" cart to be able to customize a template on an installation on my own computer.
Code:<?php /** * @package Installer * @access private * @copyright Copyright 2003-2010 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: application_top.php 17117 2010-07-31 18:19:41Z drbyte $ */ /** * ensure odd settings are disabled and set required defaults */ //@ini_set("session.auto_start","0"); //@ini_set("session.use_trans_sid","0"); @ini_set('date.timezone', 'America/Vancouver'); @ini_set("arg_separator.output","&"); /** * Set the local configuration parameters - mainly for developers */ if (file_exists('includes/local/configure.php')) { /** * load any local(user created) configure file. */ include('includes/local/configure.php'); } /**
Last edited by jbdougherty; 30 Oct 2011 at 04:41 PM. Reason: lose double spacing in code snippet