Skip to content

Commit

Permalink
Fix the file time converting issue the ZealFS file system image reado…
Browse files Browse the repository at this point in the history
…nly support for NanaZip.Codecs.
  • Loading branch information
MouriNaruto committed Feb 2, 2025
1 parent cbcb1fa commit 1f50639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NanaZip.Codecs/NanaZip.Codecs.Archive.Zealfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ namespace NanaZip::Codecs::Archive
ZealfsFileEntry const& Entry)
{
SYSTEMTIME SystemTime = { 0 };
SystemTime.wYear = this->ReadBcd(&Entry.Year[0]) * 100 - 1900;
SystemTime.wYear = this->ReadBcd(&Entry.Year[0]) * 100;
SystemTime.wYear += this->ReadBcd(&Entry.Year[1]);
SystemTime.wMonth = this->ReadBcd(&Entry.Month) - 1;
SystemTime.wDayOfWeek = this->ReadBcd(&Entry.Date);
Expand Down

0 comments on commit 1f50639

Please sign in to comment.