Description
Details about Problem
nanoFramework area: (mscorlib)
Description
Output of DateTime.ToString() with custom formats is wrong on some formats.
Detailed repro steps so we can see the same problem
When reworking Unit Test DateTime_ToStringTest7() got this:
Test DateTime is: 02/28/2430 22:26:20
DateTime.ToString(String) using Custom Formats and Verifying
Testing custom format: 'h:mm:ss.ff t'
Output was '10:26:20.112200 P'
Other suggested things
Expected behavior
- Need to revisit the code that's outputting DateTime.ToString().
- Unit Tests for DateTime.ToString() need to be improved to perform actual and detailed check of the output, instead of just relying on an output string with any content (currently are checking for output length only).