Cuestión : Formato del tiempo de Chanign en archivo de A JS

Hola estoy utilizando una escritura que produzca un diario, el semanario, y el calendario mensual. Estoy funcionando en ediciones formating. El formato actual imprime everyting en 24 veces de la hora… que lo necesito imprimir en 12 horas tal como h: i un formato. Soy inseguro cómo a. Debajo están las funciones que producen el tiempo.  “, tmt,” necesito básicamente esta variable al 2:00 P.M. de la pinta en vez de 14:00. class= > " claro " del
> del " codeSnippet " del class= del
class= " lineNumbers " del
class= del "); //////////NOT SURE QUE PARTE DE ESTA FUNCIÓN QUE USTED NECESITARÁ fomartTimeShow de la función (h) { ¿de vuelta h < 10? “0” + h +”: 00 ": h + “: 00”; } getymformat de la función (fecha, comparedate, isshowtime, isshowweek, showcompare) { ¡var showyear = isshowtime! ¿= indefinido? ¡(date.getFullYear ()! = nueva fecha () .getFullYear ()) : verdad; el showmonth del var = verdad; el var showday = verdad; showtime = isshowtime del var || falso; showweek = isshowweek del var || falso; si (comparedate) { ¡showyear = comparedate.getFullYear ()! = date.getFullYear (); ¡//showmonth = comparedate.getFullYear ()! = date.getFullYear () || ¡date.getMonth ()! = comparedate.getMonth (); si && del == date.getFullYear (de comparedate.getFullYear () () && del == comparedate.getMonth de date.getMonth () () == comparedate.getDate de date.getDate () () ) { showyear = showmonth = showday = showweek = falso; } } var a = []; si (showyear) { a.push (i18n.xgcalendar.dateformat.fulldayshow) } si (showmonth) { a.push (i18n.xgcalendar.dateformat. Md3) } si (showday) { a.push (i18n.xgcalendar.dateformat.day); } ¿a.push (showweek? “(w)”: ¿"", showtime? “HH: milímetro”: ""); a.join de vuelta (""); } función CalDateShow (startday, endday, isshowtime, isshowweek) { ¡si (! endday) { dateFormat.call de vuelta (startday, getymformat (startday, nulo, isshowtime)); } { strstart= dateFormat.call (startday, getymformat (startday, nulo, isshowtime, isshowweek) del var); var strend=dateFormat.call (endday, getymformat (endday, startday, isshowtime, isshowweek)); ¡el var ensambla = (strend! ¿= ""? “-”: ""); volver [strstart, strend] .join (ensamblar); } } dochange de la función () { var d = getRdate (); var cargado = checkInEr (d.start, d.end); ¡si (! cargado) { poblar (); } } checkInEr de la función (comienzo, extremo) { ll del var = option.loadDateR.length; si (== 0 del ll) { falso de vuelta; } var r = falso; var r2 = falso; para (var i = 0; i < ll; i++) { r = falso, r2 = falso; el Dr. del var = option.loadDateR [i]; si (<= dr.enddate del comienzo del && del >= dr.startdate del comienzo) { r = verdad; } si == dateFormat.call (dr.startdate, “yyyyMMdd” (de dateFormat.call (comienzo, “yyyyMMdd”)) || == dateFormat.call (dr.enddate, “yyyyMMdd” de dateFormat.call (comienzo, “yyyyMMdd”))) { r = verdad; } ¡si (! extremo) {r2 = verdad; } { si (<= dr.enddate del extremo del && del >= dr.startdate del extremo) { r2 = verdad; } si == dateFormat.call (dr.startdate, “yyyyMMdd” (de dateFormat.call (extremo, “yyyyMMdd”)) || == dateFormat.call (dr.enddate, “yyyyMMdd” de dateFormat.call (extremo, “yyyyMMdd”))) { r2 = verdad; } } si (&& r2 de r) { rotura; } } r de vuelta del && r2; } función buildtempdayevent (sh, el SM, eh, em, h, título, w, vuelve a clasificar según el tamaño, el thindex) { ¡tema = thindex del var! ¿= >= indefinido 0 del thindex del &&? tc (thindex): tc (); newtemp del var = Tp (__SCOLLEVENTTEMP, { bdcolor: tema [0], bgcolor2: tema [0], bgcolor1: tema [2], datos: "", starttime: [pZero (sh), pZero (SM)].join (“: "), endtime: [pZero (eh), pZero (em)].join (“: "), contenido: ¿título? título: i18n.xgcalendar.new_event, título: ¿título? título: i18n.xgcalendar.new_event, icono: “class= del   ”, tapa: “0px”, izquierda: "", anchura: ¿w? w: “100%”, altura: h - 4, i: “- 1”, fricción: “arrastrar-viruta”, redespliegue: ¿volver a clasificar según el tamaño? “bloque”: “ningunos” }); newtemp de vuelta;
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
class= >////////////DISPLAY " notpretty " del id= " codeSnippet866820 " del
”, tmt, “");
}
ht.push (“
class= del

Respuesta : Formato del tiempo de Chanign en archivo de A JS

Usted puede substituir el fomartTimeShow actual por los ths uno:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
fomartTimeShow de la función (h) {
		si (h>12) {
			h = h-12;
			h de vuelta  <10>
           
Otras soluciones  
 
programming4us programming4us