Update date() calls to gmdate()

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