Skip to content

Instantly share code, notes, and snippets.

View Erazihel's full-sized avatar
🦈

Thomas L. Erazihel

🦈
  • Paris, France
View GitHub Profile
@Erazihel
Erazihel / fixTimeStamp.js
Created November 11, 2020 13:45
Fix timestamp of a batch of files
const execFile = require("child_process").execFile;
const exec = require("child_process").exec;
function fixTimeStamp() {
const firstWrongDate = new Date("01/02/2016 16:28");
const firstRightDate = new Date("10/25/2020 12:05");
const offset = Math.abs(firstRightDate.getTime() - firstWrongDate.getTime());
exec("ls", function (err, data) {
if (!err) {

Keybase proof

I hereby claim:

  • I am erazihel on github.
  • I am erazihel (https://keybase.io/erazihel) on keybase.
  • I have a public key ASCPJYbAxepNmmcAR0o85njSAREYMt90CILNBmU8-8yESQo

To claim this, I am signing this object: