Update date() calls to gmdate() to prevent error messages when date.timezone isn't set in php.ini. Fixes #19