Skip to content

Commit

Permalink
Merge pull request #38 from ChainSwordCS/pr/datetime-fix
Browse files Browse the repository at this point in the history
Fixed an oversight with checking validity of a dirent's datetime in Metadata Analyzer
  • Loading branch information
aerosoul94 authored Nov 26, 2024
2 parents 99a1937 + 3805d11 commit ac5c146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

# Upload the release build artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: FATXTools-Release
path: FATXTools/bin/Release/
2 changes: 1 addition & 1 deletion FATX/Analyzers/MetadataAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private bool IsValidDateTime(TimeStamp dateTime)
return false;
}

if (dateTime.Day > MaxDays[dateTime.Month - 1])
if (dateTime.Day > MaxDays[dateTime.Month - 1] || dateTime.Day < 1)
{
return false;
}
Expand Down

0 comments on commit ac5c146

Please sign in to comment.