Update FromChromeBrowserTimeStamp.mjs
This commit is contained in:
parent
6fbb5b5ebe
commit
d777a7c3a8
@ -18,7 +18,6 @@ class FromChromeBrowserTimestamp extends Operation {
|
|||||||
*/
|
*/
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.name = "From Chrome Browser Timestamp";
|
this.name = "From Chrome Browser Timestamp";
|
||||||
this.module = "Default";
|
this.module = "Default";
|
||||||
this.description = "Converts Chrome Browser Timestamp to datetime string<br><br>e.g. <code>12883423549000000</code> \
|
this.description = "Converts Chrome Browser Timestamp to datetime string<br><br>e.g. <code>12883423549000000</code> \
|
||||||
@ -36,11 +35,8 @@ class FromChromeBrowserTimestamp extends Operation {
|
|||||||
* @throws {OperationError} if invalid unit
|
* @throws {OperationError} if invalid unit
|
||||||
*/
|
*/
|
||||||
run(input, args) {
|
run(input, args) {
|
||||||
|
|
||||||
const d = moment.unix((input /1000000) - 11644473600);
|
const d = moment.unix((input /1000000) - 11644473600);
|
||||||
return d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss") + " UTC";
|
return d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss") + " UTC";
|
||||||
|
|
||||||
throw new OperationError();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user