summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-ximport-kirchenmusik7
1 files changed, 7 insertions, 0 deletions
diff --git a/import-kirchenmusik b/import-kirchenmusik
index 5035209..1ed33b3 100755
--- a/import-kirchenmusik
+++ b/import-kirchenmusik
@@ -71,6 +71,13 @@ EOF
jahr=$((jahr+1))
done
+ while [ ${#tag} -lt 2 ]; do
+ tag="0${tag}"
+ done
+ while [ ${#monat} -lt 2 ]; do
+ monat="0${monat}"
+ done
+
cat <<EOF
BEGIN:VEVENT
DTSTART;TZID=Europe/Berlin:${jahr}${monat}${tag}T${von}00