Skip to content

Commit c3a46b1

Browse files
committed
[PayumPayen] Fix transaction date (UTC)
1 parent d84dc16 commit c3a46b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Action/Api/ApiRequestAction.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public function execute($request)
3131
}
3232

3333
$model['vads_trans_id'] = $this->api->getTransactionId();
34-
$model['vads_trans_date'] = date('YmdHis');
34+
// Current UTC date time
35+
$model['vads_trans_date'] = (new \DateTime('now', new \DateTimeZone('UTC')))->format('YmdHis');
3536

3637
$data = $model->getArrayCopy();
3738

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"homepage" : "http://ekyna.com"
88
}
99
],
10-
"homepage" : "https://github.com/ekyna/Payum/Payzen",
10+
"homepage" : "https://github.com/ekyna/PayumPayzen",
1111
"license" : [
1212
"MIT"
1313
],

0 commit comments

Comments
 (0)