diff options
| author | JoshuaJan <popkar77@gmail.com> | 2016-07-22 17:38:04 +0800 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2016-08-01 23:49:09 +1100 |
| commit | ecf9613ee50edf2aaa866649f16f4264aa50df5f (patch) | |
| tree | 5dcb7796304d580fcef06adc82ff0e194403a670 /addons/web_calendar/static | |
| parent | 35cd054cc835dc2d6beac72bd182b3d455b79525 (diff) | |
[FIX] calendar: fix get_range_domain to match all events.
In case of event not all day, the timezone has an impact.
So if we search for date >= 2016-01-31 (00:00:00) and that the current timezone
is +5, we should search for date >= 2016-01-30 19:00:00.
date_to_str will drop the time.
This commit closes #12878
This commit closes #12971
Diffstat (limited to 'addons/web_calendar/static')
| -rw-r--r-- | addons/web_calendar/static/src/js/web_calendar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js index 4d113ebe588..d38dc2d673c 100644 --- a/addons/web_calendar/static/src/js/web_calendar.js +++ b/addons/web_calendar/static/src/js/web_calendar.js @@ -841,7 +841,7 @@ var CalendarView = View.extend({ * between given start, end dates. */ get_range_domain: function(domain, start, end) { - var format = time.date_to_str; + var format = time.datetime_to_str; var extend_domain = [[this.date_start, '<=', format(end)]]; if (this.date_stop) { extend_domain.push([this.date_stop, '>=', format(start)]); |
