mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
ISO date+time: suppress milliseconds if 0
This commit is contained in:
parent
ed97522908
commit
831bcaf4c9
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ const parseDateTime = (profile, date, time, tzOffset = null, timestamp = false)
|
|||
zone: timezone
|
||||
})
|
||||
if (daysOffset > 0) dt = dt.plus({days: daysOffset})
|
||||
return timestamp ? dt.toMillis() : dt.toISO()
|
||||
return timestamp ? dt.toMillis() : dt.toISO({suppressMilliseconds: true})
|
||||
}
|
||||
|
||||
module.exports = parseDateTime
|
||||
|
|
Loading…
Add table
Reference in a new issue