1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Merge pull request #647 from aharabada/master

Fixed custom DateTime formatting
This commit is contained in:
Brian Fiete 2020-11-02 16:43:56 -08:00 committed by GitHub
commit 4badc6eede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);