Project

General

Profile

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

Marius BĂLTEANU, 2018-12-14 22:39

View differences:

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