Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default problems with date.timezone

    im currently trying to do a fresh install of zen 1.5 on my own dedi server...
    i have set the date.timezone in the php.ini

    [Date]
    ; Defines the default timezone used by the date functions
    date.timezone = ('Europe/London')


    I have tried this date.timezone in SEVERAL different variations...
    date.timezone = Europe/London
    date.timezone = "Europe/London"
    date.timezone = (Europe/London)
    date.timezone = ("Europe/London")
    date.timezone = 'Europe/London'


    i know this may be a PHP issue... but since i only get the problem in ZEN i thought id ask u experts first...
    phpinfo says im editing the correct php.ini
    and it also says tht the date.timezone is not set etc...

    any help is greatly appreciated..
    i may not know how yet, but i soon will....i hope :)

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: php 5.3 and zen 1.5 and problems with date.timezone

    Quote Originally Posted by spid3r1987 View Post
    im currently trying to do a fresh install of zen 1.5 on my own dedi server...
    i have set the date.timezone in the php.ini

    I have tried this date.timezone in SEVERAL different variations...
    date.timezone = Europe/London
    date.timezone = "Europe/London"
    Either of these should work ok.

    Err, you DID restart apache after making changes didn't you?

    Quote Originally Posted by spid3r1987 View Post
    date.timezone = (Europe/London)
    date.timezone = ("Europe/London")
    I'm not going to say these are wrong, but generally speaking the only time I've seen the need for the brackets is when set via the PHP function date_default_timezone_set()

    Example:
    date_default_timezone_set('Europe/London');

    This format is generally (only)? used within a PHP page itself (not the ini file). No apache restart needed.

    Quote Originally Posted by spid3r1987 View Post
    i know this may be a PHP issue... but since i only get the problem in ZEN i thought id ask u experts first...
    phpinfo says im editing the correct php.ini
    Just for peace of mind, could you confirm this by clicking on 'Version' link in you zencart admin screen.

    Cheers
    Rod

  3. #3
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: php 5.3 and zen 1.5 and problems with date.timezone

    Quote Originally Posted by spid3r1987 View Post
    im currently trying to do a fresh install of zen 1.5 on my own dedi server...
    i have set the date.timezone in the php.ini

    [Date]
    ; Defines the default timezone used by the date functions
    date.timezone = ('Europe/London')


    I have tried this date.timezone in SEVERAL different variations...
    date.timezone = Europe/London
    date.timezone = "Europe/London"
    date.timezone = (Europe/London)
    date.timezone = ("Europe/London")
    date.timezone = 'Europe/London'


    i know this may be a PHP issue... but since i only get the problem in ZEN i thought id ask u experts first...
    phpinfo says im editing the correct php.ini
    and it also says tht the date.timezone is not set etc...

    any help is greatly appreciated..
    Never mind, sorted it!!!!!
    using php -i|grep php.ini on ssh
    it showed error on line 305, which should have just been a continuation of line 304....(16mb)
    moved it back to line 304, saved n closed...restarted httpd
    working!!!
    phpinfo showing correct info AND zencart can upgrade!!!!
    awesome


    SO!! if anybody is having problems with PHP not being read properly, check around line 304...make sure its not moved onto line 305....
    i may not know how yet, but i soon will....i hope :)

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: php 5.3 and zen 1.5 and problems with date.timezone

    Quote Originally Posted by spid3r1987 View Post
    SO!! if anybody is having problems with PHP not being read properly, check around line 304...make sure its not moved onto line 305....
    My php.ini
    ; Implicit flush tells PHP to tell the output layer to flush itself
    ; automatically after every output block. This is equivalent to calling the
    ; PHP function flush() after each and every call to print() or echo() and each
    ; and every HTML block. Turning this option on has serious performance
    ; implications and is generally recommended for debugging purposes only. <<<<< Line 304 <<<<<<<<<<
    ; http://php.net/implicit-flush
    ; Note: This directive is hardcoded to On for the CLI SAPI

    I don't see how that's at all relevent <grin>

    Point being, line numbers make useless reference points. They can and will be different for everyone.

    Cheers
    Rod

 

 

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. 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
  4. date.timezone
    By brandongay in forum Installing on a Linux/Unix Server
    Replies: 16
    Last Post: 30 Oct 2011, 04:36 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