hardlounge/client/js/libs/handlebars/tz.js
2017-06-10 14:53:15 +03:00

11 lines
324 B
JavaScript

"use strict";
const moment = require("moment");
const constants = require("../../constants");
module.exports = function(time) {
const options = require("../../options");
const format = options.showSeconds ? constants.timeFormats.msgWithSeconds : constants.timeFormats.msgDefault;
return moment(time).format(format);
};