Commit 81782b8accfda4fd496e47fa7a5bf029d4b5479f

Authored by Tom Pesman
1 parent dd0e092e

PostGIS support added

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/groupdate/scopes.rb
... ... @@ -81,7 +81,7 @@ module Groupdate
81 81  
82 82 ["CONVERT_TZ(DATE_FORMAT(CONVERT_TZ(#{column}, '+00:00', ?), '#{format}'), ?, '+00:00')", time_zone, time_zone]
83 83 end
84   - when "PostgreSQL"
  84 + when "PostgreSQL", "PostGIS"
85 85 case field
86 86 when "day_of_week"
87 87 ["EXTRACT(DOW from #{column}::timestamptz AT TIME ZONE ?)::integer", time_zone]
... ...