DRÄ Studio

Pixel pushing and pencil shavings

Home Blog Projects Wallpapers Themes Fonts

Blog

Snow Leopard needs a default timezone

Posted on Tuesday, September 22nd, 2009 under Code | 1 comment

PHP Timezone Warning

I happend to be testing one of the current Illustrative projects locally and notice the following PHP error on my date('y') function:

Warning: 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 ...

The error wasn't occurring online, since the live server's php.ini file or the server itself was setting a timezone. Turns out that the newest version of PHP (5.1.0) that ships with Snow Leopard now requires that a default timezone be set.

You can read through the quick fix on the Mac OSX Hints site to resolve the issue on your machine.

Related Posts:

Before You install Snow Leopard
I saw that Apple had put out this handy list of software that is incompatible with Leopard, and I thought it might be helpful to start collecting a list of smaller third-party apps that may cause issues. Here are mine so far ... feel free to comment with any others you are finding. Applications Incompatible with ...
Snow Leopard wants to replace your Automator Plugins with Services
If you are like me and love the wonderfully scripted things that Apple's Automator application can provide, you are going to be pretty excited for some of the changes in Mac OS X 10.6. You will, however, find that if you were using any custom or third-party actions (i.e. those by Dropbox, Junecloud or AppZapper) ...
Fixing Web Sharing after the Snow Leopard install
I've mentioned this great article before for instructions on enabling the built-in PHP5 functionality of 10.5 Leopard (this article is not so bad either), but with 10.6 Snow Leopard install I did today, I found that I was getting "403 Forbidden" errors when trying to access the localhost, so I thought I would share this ...
Snow Leopard & Perl – Having 64-bit babies
Sadly, one of my favorite lil' Mac tools, Validator, which is perfect for validating XML files against custom Document Type Declarations (DTDs), is currently not working with Snow Leopard, or more specifically, Snow Leopard's implementation of 64-bit Perl. There is an easy way have 10.6 load the 32-bit version of Perl, but unfortunately, even after doing ...
Sunday in Good Form
Thanks to some of that silly relationship garbage being out of my life (at least for now), I have been working really hard and getting plenty of things off my To-Do list (for which, by the way, I am currently using a mixture of Ta-da Lists and Basecamp). Since I still haven't gotten the Dra Studio ...

Comments

Got somethin' to say? This is the place ... just try to play nice.

Thank for the link. I ended up just editing the php.ini file to hide script warnings. I would have just turned off error reporting, but I actually need error reporting as I develop stuff for work. Now I can reenable warnings!

 

Comment on Wednesday, September 23rd, 2009 by Joe Schneider

Write a comment

Your e-mail address is never published nor shared. Required fields are marked *

*

*

:

:

 

Back to Top