mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-06 15:52:17 +02:00
11 lines
324 B
JavaScript
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);
|
|
};
|