24 hour format support

I made a small modification to also support 24h format, complying with the ampm option of the rails helper