make-all / metlink-nz

Metlink Wellington Public Transport integration for Home Assistant
Apache License 2.0
10 stars 4 forks source link

Invalid time stamp on iOS devices #2

Closed Me-sudoer closed 3 years ago

Me-sudoer commented 3 years ago

When using the integration on both the companion app in or browser (Safari/Edge Chromium) on iOS 14.6 device - the entities card displays 'Invalid Timestamp' for each stop that is monitored.

The integration runs fine on Android.

make-all commented 3 years ago

It seems like the issue described here: https://community.home-assistant.io/t/timestamp-cant-show-in-ios-app-but-working-on-chrome/102714/3

The departure attribute has the correct format, so a workaround might be to display that instead of the state. But later comments on that issue suggest that the missing T is not the actual cause, so it maybe won't be a workaround. The state is passed to HomeAssistant as a datetime object, so any formatting is up to Home Assistant itself. The departure attribute is a string directly from the Metlink API.

make-all commented 3 years ago

Please try version 1.0.2. To avoid waiting the few hours it takes HACS to notice an update, you can click on the menu button on the Metlink entry in HACS, and choose "Update Information".

Me-sudoer commented 3 years ago

Legend. Thanks Jason.

On Sat, 19 Jun 2021 at 9:20 PM, Jason Rumney @.***> wrote:

Please try version 1.0.2. To avoid waiting the few hours it takes HACS to notice an update, you can click on the menu button on the Metlink entry in HACS, and choose "Update Information".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/make-all/metlink-nz/issues/2#issuecomment-864380875, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJITBOJWE7FPNYVZRAY3BLDTTRONDANCNFSM466ZSSKA .