Sfoglia il codice sorgente

Fix that date grouping for MySQL is not working (#32046, #13803).

Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18460 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Go MAEDA 4 anni fa
parent
commit
73c1f8a603
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      lib/redmine/database.rb

+ 1
- 1
lib/redmine/database.rb Vedi File

@@ -80,7 +80,7 @@ module Redmine
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}')"
"DATE(CONVERT_TZ(#{column},'#{local_identifier}', '#{user_identifier}'))"
else
"DATE(#{column})"
end

Loading…
Annulla
Salva