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 Paulus Schoutsen
parent 4aaafb0a99
commit 87492e6b3e

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