Skip to content

Commit

Permalink
Fixed the created date for items in zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
holwech committed Jan 10, 2020
1 parent e1940e3 commit 1cf5945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/presetCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const presetCode = [
const exifBytes = dump(exif);
content = insert(exifBytes, content);
}
newZip.file(entry.name, content, { binary: true, date: new Date(year, month, day) });
newZip.file(entry.name, content, { binary: true, date: new Date(year, month - 1, day, 1, 1, 1) });
}
}
`
Expand Down

0 comments on commit 1cf5945

Please sign in to comment.