bureus / MMM-Vasttrafik-PublicTransport

Initial commit
9 stars 6 forks source link

Wrong time #16

Closed henper closed 3 years ago

henper commented 3 years ago

When the current time for depature is before midnight and the next depature is after, the time to next departure time is faulty calculated and gets huge, like it's calculated from next depature, forward, to the current time stamp.

bureus commented 3 years ago

Will look into it!

bureus commented 3 years ago

So I have found out that there is actually a bug inside västtrafiks API, so will need to reach out to them to get it resolved. Meanwhile i will do an ugly hack to resolve it.

bureus commented 3 years ago

@henper after some trials I have been able to hopefully close the bug. So please update to latest version and test and reopen this issue if not resolved.

mopsmannen commented 3 years ago

Hi

Looks good after after midnight but the hour before (2300-2359) shows very bizarre departuretimes. On these photos time can be seen top left. Two photos are before midnight and the next tram towards Angered was already departed. 3F6DE5C5-4426-4B61-BD7D-E94BE4EA11FE

EBFA4106-FEA1-4841-BE37-8DB5F9A2B39F 17B07304-7E7A-412E-8160-47FE600329F3

fillilutten commented 3 years ago

Any news? This problem still exists.