From bc773abcfc048a741818a008ce08cdcf3bcd506d Mon Sep 17 00:00:00 2001 From: Michael H Date: Wed, 12 Jun 2024 09:30:40 +0100 Subject: [PATCH] Update FromMacAbsoluteTimestamp.mjs --- src/core/operations/FromMacAbsoluteTimestamp.mjs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/operations/FromMacAbsoluteTimestamp.mjs b/src/core/operations/FromMacAbsoluteTimestamp.mjs index 1396d067..bf3ff09e 100644 --- a/src/core/operations/FromMacAbsoluteTimestamp.mjs +++ b/src/core/operations/FromMacAbsoluteTimestamp.mjs @@ -18,7 +18,6 @@ class FromMacAbsoluteTimestamp extends Operation { */ constructor() { super(); - this.name = "From Mac Absolute Timestamp"; this.module = "Default"; this.description = "Converts Apple Mac Absolute Timestamp to datetime string

e.g. 591621300 becomes Tue 1 October 2019 11:15:00 UTC

Mac Absolute timestamp is a 32-bit value representing the number of seconds since January 1, 2001 UTC"; @@ -34,11 +33,8 @@ class FromMacAbsoluteTimestamp extends Operation { * @throws {OperationError} if invalid unit */ run(input, args) { - const d = moment.unix(input + 978307200); return d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss") + " UTC"; - - throw new OperationError(); } }