summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-ximport-kirchenmusik2
1 files changed, 1 insertions, 1 deletions
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