Skip to content

Commit

Permalink
fix(ConfigFileToGeoDBService): date parsing was wrong on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed Apr 5, 2023
1 parent 48d1bd6 commit 7d2c7e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 7d2c7e0

Please sign in to comment.