super3 / IRC-Bot

A very little basic IRCBot that will get improved over the next time.
http://www.wildphp.com
102 stars 47 forks source link

fixed empty timezone error and use America/New_York as sample timezone #42

Closed FreedomKnight closed 9 years ago

FreedomKnight commented 9 years ago

hi, i think its' a problem when user didn't set default timezone. I patch a timezone code, and make sample timezone as 'America/New_York' in config.php (I think it's author's time zone, ha)

if there's no timezone setting in config.php, it will use UTC as default.

rmrhz commented 9 years ago

Ha, and I thought you've mistakenly added your own timezone.

FreedomKnight commented 9 years ago

It may happend before php 5.5 because empty function only accept variable. So, I change it to use variable now.

oliveratgithub commented 9 years ago

Yeah you're right @FreedomKnight , I had the issue with PHP version < 5.3. Thanks for the fix though! Will try it out

It may happend before php 5.5 because empty function only accept variable. So, I change it to use variable now.