mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-23 03:51:46 +00:00
Test failure with SQLServer (#22320).
git-svn-id: http://svn.redmine.org/redmine/trunk@15392 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a817635b0f
commit
9cfb319c43
@ -1759,7 +1759,9 @@ class QueryTest < ActiveSupport::TestCase
|
||||
assert c = @query.send(:date_clause, 'table', 'field', from, to, false)
|
||||
# the dates should have been interpreted in the user's time zone and
|
||||
# converted to utc. March 20 in Hawaii begins at 10am UTC.
|
||||
assert_equal "table.field > '2016-03-20 09:59:59.999999' AND table.field <= '2016-03-23 09:59:59.999999'", c
|
||||
f = Time.new(2016, 3, 20, 9, 59, 59, 0).end_of_hour
|
||||
t = Time.new(2016, 3, 23, 9, 59, 59, 0).end_of_hour
|
||||
assert_equal "table.field > '#{Query.connection.quoted_date f}' AND table.field <= '#{Query.connection.quoted_date t}'", c
|
||||
ensure
|
||||
ActiveRecord::Base.default_timezone = :local # restore Redmine default
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user