Skip to content

Commit c4352ab

Browse files
committed
MAGE-909: created at converted to UTC timestamp
1 parent d454630 commit c4352ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Helper/AlgoliaHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,8 @@ protected function prepareRecords(array &$objects, string $indexName): void
590590
$modifiedIds = [];
591591
foreach ($objects as $key => &$object) {
592592
$object['algoliaLastUpdateAtCET'] = $currentCET;
593+
// Convert created_at to UTC timestamp
594+
$object['created_at'] = strtotime($object['created_at']);
593595

594596
$previousObject = $object;
595597

0 commit comments

Comments
 (0)