From c3e7df5f15c9f7e146b1ffce8da5615038210d93 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 24 Dec 2023 08:57:51 +0100 Subject: vorsichtshalber schon das Vorjahr testen --- import-kirchenmusik | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import-kirchenmusik b/import-kirchenmusik index d3c034b..c09cd57 100755 --- a/import-kirchenmusik +++ b/import-kirchenmusik @@ -62,7 +62,7 @@ EOF ' \ | while read -r wer tag monat von bis; do tag="${tag%.}" - jahr=$(date '+%Y') + jahr=$(($(date '+%Y')-1)) while [ $(($(date '+%s')-60*60*24*100)) -gt $(date -d "${jahr}-${monat}-${tag}" '+%s') ]; do jahr=$((jahr+1)) done -- cgit v1.2.3-54-g00ecf