You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Sample Project
Screenshot
Additional context
I've made an effort to fix the bug
The text was updated successfully, but these errors were encountered:
josesimoes
changed the title
DateTime.ToString() with custom formats is outputting wrong formats
DateTime.ToString() with custom formats is outputting wrong data
Oct 11, 2021
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:
Other suggested things
Expected behavior
Sample Project
Screenshot
Additional context
I've made an effort to fix the bug
The text was updated successfully, but these errors were encountered: