fordpass-ha icon indicating copy to clipboard operation
fordpass-ha copied to clipboard

Last Refresh time incorrect

Open BrttClne22 opened this issue 2 years ago • 1 comments

If I refreshed today at 5PM, the last refresh sensor would give me back 2022-01-27 22:00:00-05:00. The DateTime component appears to be the current UTC time, -05:00 means that it should be adjusted for EST time but it is not.

Based on what I've found, 5PM should either be listed as 2022-01-27 17:00:00-05:00 (timezone adjusted) or 2022-01-27 22:00:00-00:00 (utc).

fordpass-ha: 1.30 ha-version: 2021.12.10 timezone: America/New_York

Thanks for all your work on this :) One of my favorite integrations!

BrttClne22 avatar Jan 27 '22 22:01 BrttClne22

At the moment the integration just returns the raw value exposed by the Fordpass API. I don't currently convert it to the relevant local timestamp. I could look at doing this in the not so distant future.

itchannel avatar Feb 15 '22 21:02 itchannel