//
// Description: Zip helper, base class
-/* Copyright (c) 2013 Konrad Rosenbaum <konrad@silmor.de>
+/* Copyright (c) 2013-17 Konrad Rosenbaum <konrad@silmor.de>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
info.tmz_date.tm_sec=time.second();
const QDate&date=dtime.date();
info.tmz_date.tm_year=date.year();
- info.tmz_date.tm_mon=date.month();
+ info.tmz_date.tm_mon=date.month()-1;
info.tmz_date.tm_mday=date.day();
info.dosDate=info.external_fa=info.internal_fa=0;
info.tmz_date.tm_sec=time.second();
const QDate&date=zinfo.createTime().date();
info.tmz_date.tm_year=date.year();
- info.tmz_date.tm_mon=date.month();
+ info.tmz_date.tm_mon=date.month()-1;
info.tmz_date.tm_mday=date.day();
info.dosDate=info.external_fa=info.internal_fa=0;
return ZipFileInfo(
QString::fromLatin1(buf,info.size_filename),
QDateTime(
- QDate(info.tmu_date.tm_year,info.tmu_date.tm_mon,info.tmu_date.tm_mday),
+ QDate(info.tmu_date.tm_year,info.tmu_date.tm_mon+1,info.tmu_date.tm_mday),
QTime(info.tmu_date.tm_hour,info.tmu_date.tm_min,info.tmu_date.tm_sec)
),
info.compression_method,