diff --git a/src/core/operations/FromUNIX32bitTimeStamp.mjs b/src/core/operations/FromUNIX32bitTimeStamp.mjs index 62f0c109..4574c52f 100644 --- a/src/core/operations/FromUNIX32bitTimeStamp.mjs +++ b/src/core/operations/FromUNIX32bitTimeStamp.mjs @@ -5,7 +5,6 @@ */ import Operation from "../Operation.mjs"; -import OperationError from "../errors/OperationError.mjs"; import moment from "moment-timezone"; /** @@ -18,15 +17,12 @@ class FromUNIX32bitTimestamp extends Operation { */ constructor() { super(); - this.name = "From UNIX 32-bit Timestamp"; this.module = "Default"; this.description = "Converts UNIX 32-bit Hex Timestamp to datetime string

e.g. 51C3C311 becomes 21 June 2013 03:05:53 UTC

UNIX 32-bit timestamp is a 4 Byte Hex value representing the number of seconds since January 1, 1970 UTC

Use with swap endianness recipe if required."; this.infoURL = "https://wikipedia.org/wiki/Unix_time"; this.inputType = "string"; this.outputType = "string"; - - this.args = []; } @@ -36,7 +32,6 @@ class FromUNIX32bitTimestamp extends Operation { * @throws {OperationError} if invalid unit */ run(input, args) { - const h = parseInt(input, 16); const d = moment.unix(h); return d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss") + " UTC";