2
Vote

Wrong time displayed when SelectedTimeFormat is TwentyFour

description

When the Hour property is set to 8 and SelectedTimeFormat is TwentyFour, this gets rendered as "20:00:00". This is wrong in a 24 hour clock, it should read 08:00:00. I fixed this by replacing line 794 in TimeSelector.cs with this:
 
            if (SelectedTimeFormat == TimeFormat.Twelve)
                Date = Convert.ToDateTime(DateTime.Now.ToShortDateString() + " " + Hour + ":" + Minute + ":" + Second + " " + AmPm);
            else
                Date = Convert.ToDateTime(DateTime.Now.ToShortDateString() + " " + Hour + ":" + Minute + ":" + Second);

comments