Dunnymeister opened a new issue, #772: URL: https://github.com/apache/lucenenet/issues/772
When calling DateTools.DateToString for date "0001-01-01 00:00:00Z" in 4.8.0-beta00016 an AggregateException is thrown: ``` [Fact] public void DateToString_MinDate_ShouldNotThrowAggregateException() { var date = new DateTime(); var value = DateTools.DateToString(date, DateResolution.DAY); // Exception thrown here Assert.Equal("00010101", value); } ``` > System.AggregateException : One or more errors occurred. (The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset')) In 4.8.0-beta00015 this works without issue and returns "00010101": ``` [Fact] public void DateToString_MinDate_ShouldNotThrowAggregateException() { var date = new DateTime(); var value = DateTools.DateToString(date, DateTools.Resolution.DAY); Assert.Equal("00010101", value); } ``` I'm happy to create a pull request and try fix if this wasn't intentional. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org