Try to fix Google login

Honestly, I have no clue at this point, but setting the PHP timezone to
UTC seems to fix most of the login bugs I've been seeing.
This commit is contained in:
Guangcong Luo 2017-10-29 20:37:50 -04:00
parent 71341bbf64
commit 9e35550fc8

View File

@ -203,8 +203,10 @@ class NTBBSession {
}
if (substr(@$user['email'], -1) === '@') {
// Timezone determined to work at 7:30 PM CDT
// Timezones known to fail at various times: America/Chicago, America/New_York
date_default_timezone_set('UTC');
require_once dirname(__FILE__).'/../vendor/autoload.php';
date_default_timezone_set('America/New_York');
$client = new Google_Client(['client_id' => $psconfig['gapi_clientid']]);
$payload = '';
try {