diff --git a/app/models/query.rb b/app/models/query.rb index 6c20cd9..769e16d 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -1304,11 +1304,8 @@ class Query < ActiveRecord::Base end def date_for_user_time_zone(y, m, d) - if tz = User.current.time_zone - tz.local y, m, d - else + # Always use local time to avoid date query date offset issue (http://www.redmine.org/issues/23189) Time.local y, m, d - end end # Returns a SQL clause for a date or datetime field.