From 3a43c5a7ba609a09a5b4c5c5f1b22b2ac7b10dde Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Thu, 28 Aug 2025 12:33:48 +0200 Subject: [PATCH] minor improvements Signed-off-by: Stephan Richter --- .../java/de/srsoftware/umbrella/core/model/Time.java | 3 ++- frontend/src/routes/time/Index.svelte | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/de/srsoftware/umbrella/core/model/Time.java b/core/src/main/java/de/srsoftware/umbrella/core/model/Time.java index efaec7d..ab776d1 100644 --- a/core/src/main/java/de/srsoftware/umbrella/core/model/Time.java +++ b/core/src/main/java/de/srsoftware/umbrella/core/model/Time.java @@ -143,7 +143,8 @@ public class Time implements Mappable{ } public Time stop(LocalDateTime endTime) { - end = endTime.withNano(0); + end = endTime.withSecond(0).withNano(0); + start = start.withSecond(0).withNano(0); state = State.Open; return this; } diff --git a/frontend/src/routes/time/Index.svelte b/frontend/src/routes/time/Index.svelte index 654e418..0907944 100644 --- a/frontend/src/routes/time/Index.svelte +++ b/frontend/src/routes/time/Index.svelte @@ -163,9 +163,13 @@ {time.subject} {detail = time.id}}> - {#each Object.entries(time.tasks) as [tid,task]} - openTask(tid)}>{task} - {/each} + {detail = time.id}}> {t("state_"+time.state.name.toLowerCase())}