Skip to content

Commit 4f52486

Browse files
committed
Hardcode the timestamp format to match the one we'll verify against
1 parent 17b78a8 commit 4f52486

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Requests/Generator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ public function sign(Request $request) : Request
4747
$key = $this->configuration->getSigningKey();
4848

4949
$request = $request->withHeader('X-SIGNED-ID', (string) Uuid::uuid4());
50-
$request = $request->withHeader('X-SIGNED-TIMESTAMP', (string) Carbon::now());
50+
$request = $request->withHeader(
51+
'X-SIGNED-TIMESTAMP',
52+
Carbon::now()->format('Y-m-d H:i:s')
53+
);
5154

5255
$signature = new Signature(new Payload($request), $algorithm, $key);
5356

0 commit comments

Comments
 (0)