Skip to content

Commit

Permalink
Merge pull request #200 from scaarup/199-ugeplaner-viser-ikke-korrekt…
Browse files Browse the repository at this point in the history
…e-uge-i-2025

Switch week numbers to ISO 8601 standard.
  • Loading branch information
scaarup authored Jan 6, 2025
2 parents f6a13d5 + 796dc53 commit db1dd5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/aula/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ def mu_opgaver(week, thisnext):
_LOGGER.debug("MU Opgaver result: " + str(_ugep))

now = datetime.datetime.now() + datetime.timedelta(weeks=1)
thisweek = datetime.datetime.now().strftime("%Y-W%W")
nextweek = now.strftime("%Y-W%W")
thisweek = datetime.datetime.now().strftime("%Y-W%V")
nextweek = now.strftime("%Y-W%V")
mu_opgaver(thisweek, "this")
mu_opgaver(nextweek, "next")
# End of MU Opgaver
Expand Down Expand Up @@ -808,8 +808,8 @@ def is_correct_format(date_string, format):
self.ugepnext_attr[name] = ugep

now = datetime.datetime.now() + datetime.timedelta(weeks=1)
thisweek = datetime.datetime.now().strftime("%Y-W%W")
nextweek = now.strftime("%Y-W%W")
thisweek = datetime.datetime.now().strftime("%Y-W%V")
nextweek = now.strftime("%Y-W%V")
ugeplan(thisweek, "this")
ugeplan(nextweek, "next")
# _LOGGER.debug("End result of ugeplan object: "+str(self.ugep_attr))
Expand Down

0 comments on commit db1dd5b

Please sign in to comment.