Fixes abbreviated genitive (#21230)
authorRafael Lillo <rafa_lillo@outlook.com>
Mon, 3 Dec 2018 17:19:14 +0000 (15:19 -0200)
committerTarek Mahmoud Sayed <tarekms@microsoft.com>
Mon, 3 Dec 2018 17:19:14 +0000 (09:19 -0800)
* fixes abbreviation

* reverse .gitignore

* remove token lenght

src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormat.cs

index 0357086..f8066ec 100644 (file)
@@ -630,13 +630,13 @@ namespace System
                             }
                             else
                             {
-                                if ((dtfi.FormatFlags & DateTimeFormatFlags.UseGenitiveMonth) != 0 && tokenLen >= 4)
+                                if ((dtfi.FormatFlags & DateTimeFormatFlags.UseGenitiveMonth) != 0)
                                 {
                                     result.Append(
                                         dtfi.internalGetMonthName(
                                             month,
                                             IsUseGenitiveForm(format, i, tokenLen, 'd') ? MonthNameStyles.Genitive : MonthNameStyles.Regular,
-                                            false));
+                                            tokenLen == 3));
                                 }
                                 else
                                 {