db-vendo-client/format/time.js

10 lines
187 B
JavaScript
Raw Normal View History

2017-11-12 00:45:51 +01:00
'use strict'
const moment = require('moment-timezone')
const formatTime = (profile, when) => {
return moment(when).tz(profile.timezone).format('HHmmss')
2017-11-12 00:45:51 +01:00
}
2017-11-12 00:53:34 +01:00
module.exports = formatTime