Project

General

Profile

Feature #13803 » 0001-Implemented-for-MySQL-as-well_v2.patch

Marius BĂLTEANU, 2018-12-15 16:29

View differences:

lib/redmine/database.rb
else
"#{column}::date"
end
elsif mysql?
if time_zone
user_identifier = ActiveSupport::TimeZone.find_tzinfo(time_zone.name).identifier
local_identifier = ActiveSupport::TimeZone.find_tzinfo(Time.zone.name).identifier
"CONVERT_TZ(DATE(#{column}),'#{local_identifier}', '#{user_identifier}')"
else
"DATE(#{column})"
end
end
end
(3-3/3)