Skip to content

Commit

Permalink
fix: first of month to 00:00
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L committed Mar 2, 2023
1 parent ecb6dfb commit 70d3c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/southern_company_api/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async def get_month_data(self, jwt: str) -> MonthlyUsage:
"""Gets monthly data such as usage so far"""
headers = {"Authorization": f"bearer {jwt}"}
today = datetime.datetime.now()
first_of_month = today.replace(day=1)
first_of_month = today.replace(day=1, hour=0, minute=0, second=0, microsecond=0)
params = {
"accountNumber": self.number,
"startDate": first_of_month.strftime("%m/%d/%Y 12:00:00 AM"),
Expand Down

0 comments on commit 70d3c0a

Please sign in to comment.