Forums / Installing on a Mac Server / PHP 5.3 - Warning: date() [function.date]

PHP 5.3 - Warning: date() [function.date]

Locked

Started by stride_r on 2 Apr 2010, 3:13 PM · Views: 7,840

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Apr 2010, 3:13 PM
#1
stride_r avatar

stride_r

Zen Follower

Join Date:
Aug 2008
Posts:
115
Plugin Contributions:
0

PHP 5.3 - Warning: date() [function.date]

Freshly downloaded installed ZC 1.3.8.
MacBook Pro - OSX Snow Leopard
Apache server, PHP 5.3.1, MySql 5.1.44

Prior to ZC Install, ZC Files were patched for PHP 5.3 per:
http://www.zen-cart.com/forum/showthread.php?t=140960

Install and set up completed with no issues. The Storefront and the sample products, etc. all display fine. Appears to work correctly - add products to cart okay, etc.

However, attempting to load the ZC Admin only displays the following:

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /Users/MyAcct/Sites/PHP Sites/zen53/admin/includes/languages/english/email_extras.php on line 40

Warning: Cannot modify header information - headers already sent by (output started at /Users/StrideR/Sites/PHP Sites/zen-Basic-PHP53/admin/includes/languages/english/email_extras.php:40) in /Users/MyAcct/Sites/PHP Sites/zen53/admin/includes/init_includes/init_templates.php on line 36

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /Users/MyAcct/Sites/PHP Sites/zen53/includes/functions/specials.php on line 54

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /Users/MyAcct/Sites/PHP Sites/zen53/includes/functions/specials.php on line 29

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /Users/StrideR/Sites/PHP Sites/zen53/includes/functions/featured.php on line 53

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /Users/MyAcct/Sites/PHP Sites/zen53/includes/functions/featured.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /Users/StrideR/Sites/PHP Sites/zen-Basic-PHP53/admin/includes/languages/english/email_extras.php:40) in /Users/MyAcct/Sites/PHP Sites/zen53/admin/includes/functions/general.php on line 21

Anyone have any suggestions?

2 Apr 2010, 8:18 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: PHP 5.3 - Warning: date() [function.date]

Fix your date.timezone setting in your php.ini

.
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 Apr 2010, 3:47 AM
#3
stride_r avatar

stride_r

Zen Follower

Join Date:
Aug 2008
Posts:
115
Plugin Contributions:
0

Re: PHP 5.3 - Warning: date() [function.date]

Dr. Byte, ....what would we do without you and the others on the forum?!? A simple fix but thanks so much for nudging me in the right direction! :smile: