bugfix: time editor failed when no end time was set

This commit is contained in:
2025-09-01 09:13:08 +02:00
parent 50dbe9a4e5
commit eaf5e54edf

View File

@@ -115,6 +115,7 @@ public class Time implements Mappable{
}
if (json.has(START_TIME) && json.get(START_TIME) instanceof Number st) start = st.longValue();
if (json.has(END_TIME) && json.get(END_TIME) instanceof Number e) end = e.longValue();
if (end == 0) end = null;
if (end != null && end < start) throw UmbrellaException.invalidFieldException(END_TIME,"after start_time");
return this;
}