Skip to content

Commit

Permalink
Merge pull request #3 from stefancrain/patch-2
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
allangood authored Feb 5, 2020
2 parents 8cb2122 + b8ba79c commit 9932ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/holiday_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
if 'custom_holidays' in config:
is_holiday = 0
for custom_holiday in config['custom_holidays']:
isodate = custom_holiday['date'].upper().format(YYYY=now.year, MM=now.month)
isodate = custom_holiday['date'].upper().format(YYYY=now.year, MM='%02d'%now.month)
if date.fromisoformat(isodate) == date.today():
is_holiday = 1
break
Expand Down

0 comments on commit 9932ef3

Please sign in to comment.