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: php

        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";
        }


No tienes permitido ver los links. Registrarse o Entrar a mi cuenta

El resultado:
No tienes permitido ver los links. Registrarse o Entrar a mi cuenta

Fuente:
No tienes permitido ver los links. Registrarse o Entrar a mi cuenta
Mi Blog Personal
No tienes permitido ver los links. Registrarse o Entrar a mi cuenta