Comment 4 for bug 1148149

Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote :

Hello,

Let me explain why this issue occurring.

It is because calendar view is implmeneted on field type date, logically there is no meaning to use date type field on calendar view because calendar view shows Day and Week mode which shows event on time baed values, so calendar view should be implemented on datetime field but even if develper implemented on date field so we have handled that scenario also, calendar creates event from 9:00 to 17:00 for field type date, but the only issue after this is after adding 9:00 and 17:00 hours to date_Start and date_deadline it convertes that date in to local timezone say for example you are in timezone UTC+5:30 so it is converted to 14:30, which is abnormal behaviour, I have one scenario where this thing make major issue.
If I am in timezone UTC+11(say for example region of USA Samoa), now I create event so 9:00 - 11:00 hours that is 22:00 PM of previous day, so event is created with 22:00 to 6:00 AM of next day(8:00 hour's event) so event is created for 2 days which is wrong.

The behavior should be same for any timezone, event should be displayed on 9:00 AM on any timezone when it is based on date field, from web-client only issue is that it converts time into local timezone which is fixed in following branch.

lp:~openerp-dev/openerp-web/7.0-opw-590098-msh

Thanks.