From 81782b8accfda4fd496e47fa7a5bf029d4b5479f Mon Sep 17 00:00:00 2001 From: Tom Pesman Date: Tue, 11 Jun 2013 10:37:12 +0200 Subject: [PATCH] PostGIS support added --- lib/groupdate/scopes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/groupdate/scopes.rb b/lib/groupdate/scopes.rb index 421df4c..8a646ac 100644 --- a/lib/groupdate/scopes.rb +++ b/lib/groupdate/scopes.rb @@ -81,7 +81,7 @@ module Groupdate ["CONVERT_TZ(DATE_FORMAT(CONVERT_TZ(#{column}, '+00:00', ?), '#{format}'), ?, '+00:00')", time_zone, time_zone] end - when "PostgreSQL" + when "PostgreSQL", "PostGIS" case field when "day_of_week" ["EXTRACT(DOW from #{column}::timestamptz AT TIME ZONE ?)::integer", time_zone] -- libgit2 0.21.0