wdCalendar convertir horas a español

Iniciado por graphixx, Agosto 02, 2015, 04:22:19 AM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Se modifica la funcion: fomartTimeShow , tal y como se muestra en el sgte codigo: (Esta en el archivo "jquery.calendar.js").
Código: text

        function fomartTimeShow(h) {
            //return h < 10 ? "0" + h + ":00" : h + ":00";
if( h > 12) {
               h = h - 12;
               return h < 10 ? "0" + h + ":00 PM" : h + ":00 PM";
            } else if(h == 0) {
               return "12:00 AM";
            } else if(h == 12) {
               return "12:00 PM";
            } else
               return h < 10 ? "0" + h + ":00 AM" : h + ":00 AM";
        }


You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

El resultado:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Fuente:
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Mi Blog Personal
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login