Thread: date.timezone

Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ERROR: date.timezone not set in php.ini

    It means exactly what it says.
    Your server's PHP configuration doesn't have date.timezone set properly.
    You, or your hosting company, need to correct that. Contact them for help with fixing their configuration problem.
    .

    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. #12
    Join Date
    Aug 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: ERROR: date.timezone not set in php.ini

    Thank you, I thought if any other idea could not be here. I have solved it. I know the best way is to correct server. Thank you for quick reply.

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

    Default Re: ERROR: date.timezone not set in php.ini

    Quote Originally Posted by DrByte View Post
    It means exactly what it says.
    Your server's PHP configuration doesn't have date.timezone set properly.
    You, or your hosting company, need to correct that. Contact them for help with fixing their configuration problem.
    Hi

    I have the same problem and my hosting company 1and1 say there is no php.ini file to configure???!!!!

    Where would the php.ini file be located?

    Many thanks!

  4. #14
    Join Date
    Oct 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: date.timezone

    Quote Originally Posted by yuto View Post
    I am having the same issue. My problem is not fixed even though I modified php.ini. In fact it seems like timezone is set properly because I can see default time zone is set, if I do phpinfo();


    I have been working on this for a bit of time, but I haven't been able to install zen-cart yet. Does anyone have any idea?
    Hi

    I can't find php.ini to modify. . . .

    Can you let me know where to find it????

    My hosting company 1and1 say thre is no php.ini file in my catalog folder!!!

  5. #15
    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!

  6. #16
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ERROR: date.timezone not set in php.ini

    Talk to your hosting company and ask them to tell you which method they prefer you to use: either php.ini or .htaccess ... and ask them for specific instructions on how to do that for YOUR site.
    .

    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.

  7. #17
    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

 

 
Page 2 of 2 FirstFirst 12

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR