[Vtigercrm-developers] Bug in Calendar with 12 hour format

Conrado Maggi comaggi at gmail.com
Fri Feb 20 15:56:40 GMT 2015


Hi,

I just found a bug in the calendar when the user uses 12 hour format.

Step to reproduce:

1- Go to calendar en create an event form 5:00PM to 7:00PM
2- When you go back to the calendar the event shows as 5:00AM to 7:00AM
3- Go to calendar list and you will see the event is correctly save in the
database.

The problem is that full calendar expect the time in 24hours format.

In both files
modules/Calendar/actions/Feed.php
modules/Calendar/actions/SaveAjax.php

You are taking off the AM/PM part but forgot to add the extra 12hours if
the time is PM.

There should be function in Vtiger_Time_UIType class that convert from
AM/PM to 24 hours. The meantime I have found attached solution.

Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150220/754b9e0d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: calendarAMPM.patch
Type: application/octet-stream
Size: 2192 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150220/754b9e0d/attachment.obj>


More information about the vtigercrm-developers mailing list