diff --git a/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java b/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java index 812ffd6..38d84b5 100644 --- a/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java +++ b/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java @@ -52,7 +52,9 @@ public class DataStoreBot { //get timestamp String timestamp = (String) entry.get("timestamp"); - String path = this.storePath + country + "-" + sensorID + "-" + timestamp + ".json";; + String path = this.storePath + country + "-" + sensorID + "-" + timestamp + ".json"; + path = path.replace(":", "-"); + path = path.replace(" ", "-"); this.store.storeJSON(path, entry); } }