File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ private function refreshAuthTicket() {
8787 }
8888
8989 private function setRefreshInterval ($ updateRefreshTokenInterval ) {
90+ $ existingTimezone = date_default_timezone_get ();
9091 if ($ this ->refreshInterval == null )
9192 {
9293 date_default_timezone_set ("UTC " );
@@ -104,8 +105,10 @@ private function setRefreshInterval($updateRefreshTokenInterval) {
104105 ->setAccessTokenExpiration ($ accessTokenExpiration )
105106 ->setRefreshTokenExpiration ($ refreshTokenExpiration );
106107
107- $ this ->log ->info ("Access Token Expiration - " . $ this ->refreshInterval ->getAccessTokenExpiration ()->format ('Y-m-d H:i:s ' ));
108- $ this ->log ->info ("Refresh Token Expiration - " .$ this ->refreshInterval ->getRefreshTokenExpiration ()->format ('Y-m-d H:i:s ' ));
108+
109+ $ this ->log ->info ("Access Token Expiration - " . $ this ->refreshInterval ->getAccessTokenExpiration ()->format ('Y-m-d H:i:s ' ));
110+ $ this ->log ->info ("Refresh Token Expiration - " .$ this ->refreshInterval ->getRefreshTokenExpiration ()->format ('Y-m-d H:i:s ' ));
111+ date_default_timezone_set ($ existingTimezone );
109112 }
110113
111114 public function getAppClaim () {
@@ -147,4 +150,4 @@ public static function getInstance() {
147150 return static ::$ instance ;
148151 }
149152}
150- ?>
153+ ?>
You can’t perform that action at this time.
0 commit comments