Skip to content

Commit 6d1c813

Browse files
committed
Improved time zone check
1 parent 4c6c7fe commit 6d1c813

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/groupdate/adapters/sqlite_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def group_clause
4141
["strftime(?, #{column})", format]
4242
end
4343

44-
if period != :custom && (@time_zone.utc_offset != 0 || day_start != 0 || period == :quarter)
44+
if period != :custom && (@time_zone != SeriesBuilder.utc || day_start != 0 || period == :quarter)
4545
setup_function
4646
week_start = period == :week ? Groupdate::Magic::DAYS[self.week_start].to_s : nil
4747
query = ["groupdate_internal(?, #{column}, ?, ?, ?)", period, @time_zone.tzinfo.name, day_start, week_start]

0 commit comments

Comments
 (0)