🏠 Home 

ImageDownloaderLib

Image downloader for manga download scripts.

< 脚本ImageDownloaderLib的反馈

提问/评论

§
发表于:2024-06-20
编辑于:2024-06-20

JSZip下载的文件和文件夹默认使用UTC时间,在使用everything等软件筛选处理时会因为和所在时区的时间不同而有些麻烦。
建议在const zip = new JSZip();后添加以下代码,让下载的文件和文件夹都修正为所在时区的时间好点
const currDate = new Date();
const dateWithOffset = new Date(currDate.getTime() - currDate.getTimezoneOffset() * 60000);
// replace the default date with dateWithOffset
JSZip.defaults.date = dateWithOffset;

发表回复

登录以发表回复。