Skip to content

Commit c6e71f9

Browse files
authored
Merge pull request #68 from matks/fix-date
Handle NOW correctly when creating order and register in SQL
2 parents fbf5b4d + 20eea04 commit c6e71f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controllers/front/ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function initContent()
4141
(new GanalyticsRepository())->updateData(
4242
[
4343
'sent' => 1,
44-
'date_add' => 'NOW()',
44+
'date_add' => ['value' => 'NOW()', 'type' => 'sql'],
4545
],
4646
'id_order = ' . $orderId,
4747
1

0 commit comments

Comments
 (0)