Update ToMacAbsoluteTimestamp.mjs

This commit is contained in:
Michael H 2024-06-12 09:38:19 +01:00 committed by GitHub
parent b610968070
commit 277a3847b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ class ToMacAbsoluteTimestamp extends Operation {
*/
run(input, args) {
const [showDateTime] = args,
d = moment.utc(input);
d = moment.utc(input);
let result = (d.unix()-978307200);
return showDateTime ? `${result} (${d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss")} UTC)` : result.toString();
}