From a7a86bfd67e9e958cf94df72860d6bb88da76cb1 Mon Sep 17 00:00:00 2001 From: gyk <147011991+gyk4j@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:46:24 +0800 Subject: [PATCH] Fix out-of-range time value placeholder bug (#230) --- Wreck/IO/Reducer/TimestampReducer.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Wreck/IO/Reducer/TimestampReducer.cs b/Wreck/IO/Reducer/TimestampReducer.cs index b32cc4d..c43330c 100644 --- a/Wreck/IO/Reducer/TimestampReducer.cs +++ b/Wreck/IO/Reducer/TimestampReducer.cs @@ -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();