From 6b2da1174380e2666620ff3c88413a4ddc81afac Mon Sep 17 00:00:00 2001 From: TTTTao725 Date: Thu, 30 May 2024 13:35:49 +0200 Subject: [PATCH] fix timestamps for domsdatabasen --- data-processing/scripts/convert_domsdatabasen_to_jsonlgz.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data-processing/scripts/convert_domsdatabasen_to_jsonlgz.py b/data-processing/scripts/convert_domsdatabasen_to_jsonlgz.py index 70369eb9..f3f4c9e1 100644 --- a/data-processing/scripts/convert_domsdatabasen_to_jsonlgz.py +++ b/data-processing/scripts/convert_domsdatabasen_to_jsonlgz.py @@ -15,9 +15,9 @@ from datasets import Dataset, DatasetDict, load_dataset -oldest_case = "1855-02-28T00:00:00.000Z" -date_added = datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S.000Z") -case_time_span = ",".join([oldest_case, date_added]) +oldest_case = "1855-02-28" +date_added = datetime.datetime.now().strftime("%Y-%m-%d") +case_time_span = ", ".join([oldest_case, date_added]) def reformat_dataset(ds: Dataset) -> Dataset: