Skip to content

Commit

Permalink
修复非 UTC 时区报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonis authored Mar 14, 2019
1 parent ef6b067 commit bbacfce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DirectMailTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected function payload(Swift_Mime_SimpleMessage $message, array $region)
'Action' => 'SingleSendMail',
'Version' => $region['version'],
'AccessKeyId' => $this->getKey(),
'Timestamp' => date('Y-m-d\TH:i:s\Z'),
'Timestamp' => now()->toIso8601ZuluString(),
'SignatureMethod' => 'HMAC-SHA1',
'SignatureVersion' => '1.0',
'SignatureNonce' => \uniqid(),
Expand Down

0 comments on commit bbacfce

Please sign in to comment.