From 7d2c7e0f833c4641371893ba9f3a4f74adc766e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= Date: Wed, 5 Apr 2023 09:34:46 -0400 Subject: [PATCH] fix(ConfigFileToGeoDBService): date parsing was wrong on iOS --- packages/geo/src/lib/offline/geoDB/configFileToGeoDB.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/geo/src/lib/offline/geoDB/configFileToGeoDB.service.ts b/packages/geo/src/lib/offline/geoDB/configFileToGeoDB.service.ts index 558501eb54..b8d50fb23d 100644 --- a/packages/geo/src/lib/offline/geoDB/configFileToGeoDB.service.ts +++ b/packages/geo/src/lib/offline/geoDB/configFileToGeoDB.service.ts @@ -37,7 +37,7 @@ export class ConfigFileToGeoDBService { const currentDate = new Date(); datasToIDB?.geoDatas.map((geoData) => { if (typeof geoData.triggerDate === 'string') { - geoData.triggerDate = new Date(Date.parse(geoData.triggerDate.replace(/-/g, ' '))); + geoData.triggerDate = new Date(Date.parse(geoData.triggerDate)); } if (currentDate >= geoData.triggerDate) { if (geoData.action === 'update') {