From 6ab20963063132de5340822f8d95045f387e86e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Sun, 8 Oct 2023 10:07:58 +0200 Subject: [PATCH] FIX: trim whitespace around timestamp --- CHANGELOG.md | 1 + src/core/js/caosdb.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d731af58..0cce5a25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [caosdb-webui#226](https://gitlab.com/caosdb/caosdb-webui/-/issues/226) * Fixed broken download of referenced files in the export of select statements. https://gitlab.com/linkahead/linkahead-webui/-/issues/238 +* Fixed breaking timestamps due to whitespace [caosdb-webui#239](https://gitlab.com/caosdb/caosdb-webui/-/issues/239) ### Security ### diff --git a/src/core/js/caosdb.js b/src/core/js/caosdb.js index c0eacab9..a5483d64 100644 --- a/src/core/js/caosdb.js +++ b/src/core/js/caosdb.js @@ -376,7 +376,8 @@ var getAllEntityPermissions = function (entity) { */ function caosdb2InputDate(text) { if (text.includes("T")) { - var spl = text.split("T"); + var spl = text.trim().split("T"); + //TODO subsecond resolution is IGNORED!!! return [spl[0], spl[1].substring(0, 8)]; } return [text]; -- GitLab