mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-24 15:19:17 -05:00
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:
parent
71341bbf64
commit
9e35550fc8
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user