plist-cil icon indicating copy to clipboard operation
plist-cil copied to clipboard

Some file contains negative time and then causes Exception

Open 270676504 opened this issue 9 months ago • 1 comments

The Exception is:"The added or subtracted value results in an un-representable DateTime. Arg_ParamName_Name" Simply adding try-catch can fix this problem. public NSDate(ReadOnlySpan bytes) { try { Date = EPOCH.AddSeconds(BinaryPropertyListParser.ParseDouble(bytes)); } catch (Exception) { Date = EPOCH; } }

270676504 avatar May 17 '24 07:05 270676504