Defect #23189 » 20180329_use_local_time_in_date_query.patch
| app/models/query.rb | ||
|---|---|---|
|
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.
|
||
- « Previous
- 1
- 2
- 3
- Next »