Thread: date.timezone

Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: date.timezone

    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.

  2. #2
    Join Date
    Jan 2011
    Posts
    1
    Plugin Contributions
    0

    Default Re: date.timezone

    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');

  3. #3
    Join Date
    Jan 2011
    Posts
    1
    Plugin Contributions
    0

    Default Re: date.timezone

    Thank you.
    (Remember to restart your server to activate the new settings).

  4. #4
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    12
    Plugin Contributions
    0

    Default Re: date.timezone

    Quote Originally Posted by shawinder View Post
    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, thank you, thank you! This solved all my trobles.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: date.timezone

    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.

  6. #6
    Join Date
    Oct 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: date.timezone

    Quote Originally Posted by shawinder View Post
    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');
    Hi!

    What do you mean add the line on the top?

    Thanks!

  7. #7
    Join Date
    Sep 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: date.timezone

    Quote Originally Posted by jonbonse View Post
    Hi!

    What do you mean add the line on the top?

    Thanks!
    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

 

 

Similar Threads

  1. date.timezone
    By ettienne in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 29 Aug 2012, 12:29 PM
  2. v150 Date.Timezone php.ini problems...
    By b14speedfreak in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 16 Aug 2012, 10:41 PM
  3. v150 problems with date.timezone
    By spid3r1987 in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 10 May 2012, 10:41 AM
  4. PHP.ini date timezone issue
    By meteoros in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 25 Feb 2012, 07:03 PM
  5. date.timezone no value
    By prescott86 in forum General Questions
    Replies: 3
    Last Post: 17 Mar 2008, 03:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg