Approved
Last Updated: 20 Sep 2016 05:43 by Nicolas
Nicolas
Created on: 30 Mar 2016 12:27
Category: InputManager
Type: Bug Report
0
InputUtil.MapDateFormatShortCuts: returns wrong pattern
Date format pattern mapping is incorrect in method InputUtil.MapDateFormatShortCuts:

case "y":
          return dateTimeFormatInfo.MonthDayPattern;
case "Y":
          return dateTimeFormatInfo.MonthDayPattern;

instead of:

case "y":
          return dateTimeFormatInfo.YearMonthPattern;
case "Y":
          return dateTimeFormatInfo.YearMonthPattern;

according to "Standard Date and Time Format Strings" from 
https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
0 comments