We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c6c7fe commit 6d1c813Copy full SHA for 6d1c813
1 file changed
lib/groupdate/adapters/sqlite_adapter.rb
@@ -41,7 +41,7 @@ def group_clause
41
["strftime(?, #{column})", format]
42
end
43
44
- if period != :custom && (@time_zone.utc_offset != 0 || day_start != 0 || period == :quarter)
+ if period != :custom && (@time_zone != SeriesBuilder.utc || day_start != 0 || period == :quarter)
45
setup_function
46
week_start = period == :week ? Groupdate::Magic::DAYS[self.week_start].to_s : nil
47
query = ["groupdate_internal(?, #{column}, ?, ?, ?)", period, @time_zone.tzinfo.name, day_start, week_start]
0 commit comments