Skip to content

Commit d454630

Browse files
committed
MAGE-909: algoliaLastUpdateAtCET time changed to UTC timestamp
1 parent 42280ae commit d454630

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Helper/AlgoliaHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,7 @@ public function waitLastTask(string $lastUsedIndexName = null, int $lastTaskId =
585585
*/
586586
protected function prepareRecords(array &$objects, string $indexName): void
587587
{
588-
$currentCET = new \DateTime('now', new \DateTimeZone('Europe/Paris'));
589-
$currentCET = $currentCET->format('Y-m-d H:i:s');
588+
$currentCET = strtotime('now');
590589

591590
$modifiedIds = [];
592591
foreach ($objects as $key => &$object) {

0 commit comments

Comments
 (0)