Fix timezone for growatt lastdataupdate (#67684)

* Added timezone for growatt lastdataupdate (#67646)

* Growatt lastdataupdate set to local timezone
This commit is contained in:
muppet3000 2022-03-07 09:14:05 +00:00 committed by GitHub
parent 74c339eb7b
commit 6b4e9374b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ class GrowattData:
date_now = dt.now().date()
last_updated_time = dt.parse_time(str(sorted_keys[-1]))
mix_detail["lastdataupdate"] = datetime.datetime.combine(
date_now, last_updated_time
date_now, last_updated_time, dt.DEFAULT_TIME_ZONE
)
# Dashboard data is largely inaccurate for mix system but it is the only call with the ability to return the combined