garfieldjty / jquery-frontier-calendar

Automatically exported from code.google.com/p/jquery-frontier-calendar
0 stars 0 forks source link

Event start time of 12PM shows AM in agenda item display #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add event starting anytime in 12PM hour
2. Look at displayed agenda item value

What is the expected output? What do you see instead?
Expect 12PM for noon forward.

What version of the product are you using? On what operating system?
1.3.2

Please provide any additional information below.
DateUtil.getAgendaDisplayTime line 3495 requires special case testing for 12 
value of h variable:
if (h == 0) {
            h = 12;
        }
        else if (h == 12)
            ampm = "pm";
        else if (h > 12) {
            h = h - 12;
            ampm = "pm"
        }

Original issue reported on code.google.com by gabriel....@gmail.com on 2 Sep 2010 at 8:42

GoogleCodeExporter commented 9 years ago
another patch with only 1 elseif:

if(h == 0){
  h = 12;
} else if (h >= 12) {
  (h == 12) ? h = 12 : h = h-12;            
  ampm = "pm"
}

Original comment by m...@gwn-ws.com on 11 Apr 2012 at 8:35