Skip to content

Commit edd5d47

Browse files
authored
Merge pull request #5 from yangliulnn/patch-1
修复非 UTC 时区报错
2 parents ef6b067 + bbacfce commit edd5d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DirectMailTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ protected function payload(Swift_Mime_SimpleMessage $message, array $region)
128128
'Action' => 'SingleSendMail',
129129
'Version' => $region['version'],
130130
'AccessKeyId' => $this->getKey(),
131-
'Timestamp' => date('Y-m-d\TH:i:s\Z'),
131+
'Timestamp' => now()->toIso8601ZuluString(),
132132
'SignatureMethod' => 'HMAC-SHA1',
133133
'SignatureVersion' => '1.0',
134134
'SignatureNonce' => \uniqid(),

0 commit comments

Comments
 (0)