The files within archives have lastModified that equals to UTC time, but it should be equal to the local time.
Check this issue:
https://github.com/Stuk/jszip/issues/369
Just use this workaround:
https://github.com/Stuk/jszip/issues/369#issuecomment-546204220
const currDate = new Date();
const dateWithOffset = new Date(currDate.getTime() - currDate.getTimezoneOffset() * 60000);
// replace the default date with dateWithOffset
JSZip.defaults.date = dateWithOffset;
The files within archives have
lastModified
that equals to UTC time, but it should be equal to the local time.Check this issue:
https://github.com/Stuk/jszip/issues/369
Just use this workaround:
https://github.com/Stuk/jszip/issues/369#issuecomment-546204220