1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 08:30:25 +02:00

Fixed DateTimeFormat.FormatCustomized

This commit is contained in:
Simon Lübeß 2020-11-02 23:22:49 +01:00
parent 6afaf4faad
commit a360ab4668

View file

@ -475,8 +475,7 @@ namespace System {
tokenLen = ParseRepeatPattern(format, i, ch);
FormatDigits(result, dateTime.Second, tokenLen);
break;
case 'f':
case 'F':
case 'f', 'F':
tokenLen = ParseRepeatPattern(format, i, ch);
if (tokenLen <= MaxSecondsFractionDigits) {
int64 fraction = (dateTime.Ticks % Calendar.[Friend]TicksPerSecond);
@ -637,8 +636,7 @@ namespace System {
result.Append(dtfi.DateSeparator);
tokenLen = 1;
break;
case '\'':
case '\"':
case '\'', '\"':
//StringBuilder enquotedString = new StringBuilder();
tokenLen = ParseQuoteString(format, i, result);
//result.Append(enquotedString);