Skip to content

Commit e0d29ba

Browse files
committed
Redmine 6 compatibility: update patched method
1 parent 411e6a6 commit e0d29ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/redmine_datetime_custom_field/query_patch.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def date_clause(table, field, from, to, is_custom_filter)
6363
else
6464
from = from - 1 # second
6565
end
66-
if self.class.default_timezone == :utc
66+
if ActiveRecord.default_timezone == :utc
6767
from = from.utc
6868
end
6969

@@ -84,7 +84,7 @@ def date_clause(table, field, from, to, is_custom_filter)
8484
if to.is_a?(Date)
8585
to = date_for_user_time_zone(to.year, to.month, to.day).end_of_day
8686
end
87-
if self.class.default_timezone == :utc
87+
if ActiveRecord.default_timezone == :utc
8888
to = to.utc
8989
end
9090

0 commit comments

Comments
 (0)