Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2012
    Posts
    10
    Plugin Contributions
    0

    Default Date & Time Zone issue with php.ini file

    Zencart Version: 1.50
    PHP Version: 5.3.4
    Operating System: Mac Snow Leopard Server

    I am having the following error on Zencart Install (first page of the install):
    "ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing."

    I currently use and host Joomla products/sites on my server with no MYSQL & PHP issues. My Snow Leopard Server php.ini file located in the /etc directory has the following (originally commented out) under the date.timestamp area:

    ;;;;;;;;;;;;;;;;;;;
    ; Module Settings ;
    ;;;;;;;;;;;;;;;;;;;

    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    date.timezone =

    http://php.net/date.default-latitude
    date.default_latitude = 31.7667

    http://php.net/date.default-longitude
    date.default_longitude = 35.2333

    http://php.net/date.sunrise-zenith
    date.sunrise_zenith = 90.583333

    http://php.net/date.sunset-zenith
    date.sunset_zenith = 90.583333

    Does anyone know how to remedy this situation. I do not know the proper settings for this issue within the php.ini file. Does anything need to be changed in the configure.php file within the Zencart directory? Please note I have permissions set to 777 for all pertinent files shown in the book "e-Start Your Web Store with Zen Cart". Any help would be GREATLY APPRECIATED.

  2. #2
    Join Date
    Jan 2004
    Posts
    60,695
    Blog Entries
    4
    Plugin Contributions
    149

    Default Re: Date & Time Zone issue with php.ini file

    No, you don't need to alter the configure.php file for this.

    You need to set your time zone in your php.ini file, just as the error message is telling you.

    You can refer to:
    http://www.php.net/manual/en/datetim....date.timezone
    http://www.php.net/manual/en/timezones.php
    .

    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.



  3. #3
    Join Date
    Jan 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: Date & Time Zone issue with php.ini file

    DrByte,

    Thank you for your reply. I fixed this issue with the following in my php.ini file:

    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    date.timezone = ('America/Phoenix')

    ;http://php.net/date.default-latitude
    date.default_latitude = 31.7667

    ;http://php.net/date.default-longitude
    date.default_longitude = 35.2333

    ;http://php.net/date.sunrise-zenith
    date.sunrise_zenith = 90.583333

    ;http://php.net/date.sunset-zenith
    date.sunset_zenith = 90.583333

    After changing the php.ini file, I restarted the apache server and restarted the web browser. It works great. Thanks again!

 

 

Similar Threads

  1. Easy Populate and the Date added updated to todays date issue.
    By cyphercys in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 9 Mar 2010, 04:26 AM
  2. Date and Time
    By motor in forum General Questions
    Replies: 2
    Last Post: 14 May 2007, 08:59 PM
  3. Date & Time
    By fencer in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Sep 2006, 03:36 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