1
0
Fork 0
Commit Graph

3 Commits

Author SHA1 Message Date
Jonny 90ed4d764f fix: unify Zeiterfassung timezone display and add DB guard against double clock-in
Page and CSV export now both render shift timestamps in Europe/Berlin
consistently (previously CSV used UTC, page used server-local time,
causing the same shift to show different clock times in each place).
Also adds a partial unique index so two near-simultaneous Kommen
requests for the same fahrer can no longer create two open shifts --
the existing app-layer check was check-then-act with no DB backstop.
2026-07-14 10:27:50 +02:00
Jonny b49314e67f fix: close arbeitszeiten INSERT audit-trail gap and policy name length
INSERT policy now requires a fahrer's own shift to start open and
uncorrected (geht_um/korrigiert_von/korrigiert_am all null) — closes a
gap where a fahrer could forge a pre-corrected row. Also shortens a
policy name that exceeded Postgres' 63-byte identifier limit and was
being silently truncated.
2026-07-13 16:24:53 +02:00
Jonny 8d76230f02 feat: add arbeitszeiten table with RLS and fahrer column-lockdown trigger 2026-07-13 16:11:38 +02:00