Index: openacs-4/packages/calendar/www/views.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/views.xql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/calendar/www/views.xql 23 Nov 2017 09:27:29 -0000 1.2
+++ openacs-4/packages/calendar/www/views.xql 8 Jan 2018 13:58:46 -0000 1.3
@@ -45,7 +45,7 @@
where e.timespan_id = s.timespan_id
and s.interval_id = t.interval_id
and e.activity_id = a.activity_id
- and start_date between $interval_limitation_clause
+ and $interval_limitation_clause
and ci.cal_item_id= e.event_id
and cals.calendar_id = ci.on_which_calendar
and e.event_id = ci.cal_item_id
@@ -82,7 +82,7 @@
where e.timespan_id = s.timespan_id
and s.interval_id = t.interval_id
and e.activity_id = a.activity_id
- and start_date between $interval_limitation_clause
+ and $interval_limitation_clause
and ci.cal_item_id = e.event_id
and cals.calendar_id = ci.on_which_calendar
and e.event_id = ci.cal_item_id
@@ -103,28 +103,28 @@
- cast(:first_date_of_month_system as timestamp with time zone)
+ start_date between cast(:first_date_of_month_system as timestamp with time zone)
and cast(:last_date_in_month_system as timestamp with time zone)
- to_date(:current_date,'YYYY-MM-DD')
+ start_date between to_date(:current_date,'YYYY-MM-DD')
and to_date(:current_date,'YYYY-MM-DD') + cast('23 hours 59 minutes 59 seconds' as interval)
- to_date(:first_weekday_of_the_week_tz, 'YYYY-MM-DD HH24:MI:SS')
+ start_date between to_date(:first_weekday_of_the_week_tz, 'YYYY-MM-DD HH24:MI:SS')
and to_date(:last_weekday_of_the_week_tz, 'YYYY-MM-DD HH24:MI:SS')
- cast(:start_date as timestamp with time zone)
+ start_date between cast(:start_date as timestamp with time zone)
and cast(:end_date as timestamp with time zone)