Skip to content

Commit

Permalink
Use ISO weeks
Browse files Browse the repository at this point in the history
  • Loading branch information
ApsiV11 authored Jan 12, 2025
1 parent b7da9e6 commit ed605a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# following week (week 2). timedelta correction below takes into account this and a fact
# that datetime library consideres week 1 to be the year's first week that starts from Monday,
# which differs from finnish convention. Correction is different every year.
week = (date.today()+timedelta(days=6)).strftime('%W')
week = (date.today()+timedelta(days=6)).strftime('%V')

categories = ["Opinnot", "Killan tapahtumat", "Muut tapahtumat", "Yleistä"]
categories_en = ["Studies", "Guild's events", "Other events", "General"]
Expand Down

0 comments on commit ed605a2

Please sign in to comment.