Skip to content

Commit

Permalink
Fix out-of-range time value placeholder bug (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j authored Mar 12, 2024
1 parent 2259cc9 commit a7a86bf
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions Wreck/IO/Reducer/TimestampReducer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,9 @@ public class TimestampReducer : ITimestampReducer

// Last check: Between 1980-01-01 and current date time.
if(t.Value.CompareTo(TimeUtils.VALID_PERIOD_MIN) < 0)
t = fileSystem.Find(
md =>
{
return R.Strings.FsCreation.Equals(md.Key);
})
.Time;
// TimeUtils.VALID_PERIOD_MIN;
t = TimeUtils.VALID_PERIOD_MIN;
else if(t.Value.CompareTo(TimeUtils.VALID_PERIOD_MAX) > 0)
t = fileSystem.Find(
md =>
{
return R.Strings.FsModified.Equals(md.Key);
})
.Time;
// TimeUtils.VALID_PERIOD_MAX;
t = TimeUtils.VALID_PERIOD_MAX;
}

embedded.Clear();
Expand Down

0 comments on commit a7a86bf

Please sign in to comment.