mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Updated file for 2024
This commit is contained in:
parent
6ffbe8fa9e
commit
cabf232ea5
1 changed files with 7 additions and 8 deletions
|
@ -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,12 +35,12 @@ class FromChromeBrowserTimestamp extends Operation {
|
||||||
* @throws {OperationError} if invalid unit
|
* @throws {OperationError} if invalid unit
|
||||||
*/
|
*/
|
||||||
run(input, args) {
|
run(input, args) {
|
||||||
|
try{
|
||||||
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";
|
||||||
|
} catch {
|
||||||
throw new OperationError();
|
throw new OperationError();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default FromChromeBrowserTimestamp;
|
export default FromChromeBrowserTimestamp;
|
Loading…
Add table
Add a link
Reference in a new issue