mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
serverInfo: fix realtimeDataUpdatedAt parsing 🐛
This commit is contained in:
parent
44c8e37e5c
commit
db442bb578
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -771,7 +771,7 @@ const createClient = (profile, userAgent, opt = {}) => {
|
|||
serverTime: res.sD && res.sT
|
||||
? profile.parseDateTime(ctx, res.sD, res.sT)
|
||||
: null,
|
||||
realtimeDataUpdatedAt: res.planrtTS
|
||||
realtimeDataUpdatedAt: res.planrtTS && res.planrtTS !== '0'
|
||||
? parseInt(res.planrtTS)
|
||||
: null,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue