diff --git a/lib/Authentication/Jwt/JsonWebTokenGenerator.php b/lib/Authentication/Jwt/JsonWebTokenGenerator.php index 13c8e653..022e9dee 100644 --- a/lib/Authentication/Jwt/JsonWebTokenGenerator.php +++ b/lib/Authentication/Jwt/JsonWebTokenGenerator.php @@ -28,7 +28,7 @@ public function __construct(\CyberSource\Logging\LogConfiguration $logConfig) //calling Signature public function generateToken($resourcePath, $payloadData, $method, $merchantConfig) { - $date = date("D, d M Y G:i:s ").GlobalParameter::GMT; + $date = gmdate("D, d M Y G:i:s ").GlobalParameter::GMT; if($method==GlobalParameter::GET || $method==GlobalParameter::DELETE) { $jwtBody = array("iat"=>$date);