mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 16:40:26 +02:00
Fixed DateTimeFormat.FormatCustomized
This commit is contained in:
parent
6afaf4faad
commit
a360ab4668
1 changed files with 2 additions and 4 deletions
|
@ -475,8 +475,7 @@ namespace System {
|
||||||
tokenLen = ParseRepeatPattern(format, i, ch);
|
tokenLen = ParseRepeatPattern(format, i, ch);
|
||||||
FormatDigits(result, dateTime.Second, tokenLen);
|
FormatDigits(result, dateTime.Second, tokenLen);
|
||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f', 'F':
|
||||||
case 'F':
|
|
||||||
tokenLen = ParseRepeatPattern(format, i, ch);
|
tokenLen = ParseRepeatPattern(format, i, ch);
|
||||||
if (tokenLen <= MaxSecondsFractionDigits) {
|
if (tokenLen <= MaxSecondsFractionDigits) {
|
||||||
int64 fraction = (dateTime.Ticks % Calendar.[Friend]TicksPerSecond);
|
int64 fraction = (dateTime.Ticks % Calendar.[Friend]TicksPerSecond);
|
||||||
|
@ -637,8 +636,7 @@ namespace System {
|
||||||
result.Append(dtfi.DateSeparator);
|
result.Append(dtfi.DateSeparator);
|
||||||
tokenLen = 1;
|
tokenLen = 1;
|
||||||
break;
|
break;
|
||||||
case '\'':
|
case '\'', '\"':
|
||||||
case '\"':
|
|
||||||
//StringBuilder enquotedString = new StringBuilder();
|
//StringBuilder enquotedString = new StringBuilder();
|
||||||
tokenLen = ParseQuoteString(format, i, result);
|
tokenLen = ParseQuoteString(format, i, result);
|
||||||
//result.Append(enquotedString);
|
//result.Append(enquotedString);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue