Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
fix end of month date maths
Browse files Browse the repository at this point in the history
  • Loading branch information
badguy99 committed Apr 1, 2020
1 parent dc22f43 commit 71226dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/octocost/octocost.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(self):

def cost_and_usage_callback(self, kwargs):
today = datetime.date.today()
self.yesterday = datetime.date(today.year, today.month, today.day-1)
self.yesterday = today - datetime.timedelta(days=1)
startyear = datetime.date(today.year, 1, 1)
startmonth = datetime.date(today.year, today.month, 1)

Expand Down

0 comments on commit 71226dd

Please sign in to comment.