mirror of
https://github.com/thelounge/thelounge
synced 2024-12-27 12:53:08 +00:00
10 lines
324 B
JavaScript
10 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);
|
|
};
|