mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
9 lines
187 B
JavaScript
9 lines
187 B
JavaScript
'use strict'
|
|
|
|
const moment = require('moment-timezone')
|
|
|
|
const formatTime = (profile, when) => {
|
|
return moment(when).tz(profile.timezone).format('HHmmss')
|
|
}
|
|
|
|
module.exports = formatTime
|