From a360ab4668166099625c9ad0368ff2185339cc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Mon, 2 Nov 2020 23:22:49 +0100 Subject: [PATCH] Fixed DateTimeFormat.FormatCustomized --- BeefLibs/corlib/src/Globalization/DateTimeFormat.bf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/BeefLibs/corlib/src/Globalization/DateTimeFormat.bf b/BeefLibs/corlib/src/Globalization/DateTimeFormat.bf index e96eee40..8998b24a 100644 --- a/BeefLibs/corlib/src/Globalization/DateTimeFormat.bf +++ b/BeefLibs/corlib/src/Globalization/DateTimeFormat.bf @@ -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);