Update ToHFSPlusTimeStamp.mjs
This commit is contained in:
parent
277a3847b3
commit
bf132feef7
@ -42,7 +42,7 @@ class ToHFSPlusTimestamp extends Operation {
|
||||
*/
|
||||
run(input, args) {
|
||||
const [showDateTime] = args,
|
||||
d = moment.utc(input);
|
||||
d = moment.utc(input);
|
||||
let result = d.unix();
|
||||
const hexString = (result + 2082844800).toString(16);
|
||||
return showDateTime ? `${hexString.toUpperCase()} (${d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss")} UTC)`: hexString.toUpperCase();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user