Results 1 to 3 of 3

Hybrid View

  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
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

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

  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. 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
  2. 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
  3. File uploads are disabled in the php.ini configuration file
    By stanleymog in forum General Questions
    Replies: 2
    Last Post: 19 Aug 2008, 01:24 PM
  4. Replies: 5
    Last Post: 15 Jan 2007, 06:23 AM
  5. Does ZenCart come with a php.ini file?
    By benjames in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 Oct 2006, 02:46 AM

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