We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c3c593 commit 27b3590Copy full SHA for 27b3590
lib/fluent/plugin/in_sql.rb
@@ -192,7 +192,9 @@ def start
192
socket: @socket,
193
schema_search_path: @schema_search_path,
194
}
195
-
+ # This makes the default timezone the local one if it's undefined in the timestamp field itself
196
+ ActiveRecord::Base.default_timezone = :local
197
+
198
# creates subclass of ActiveRecord::Base so that it can have different
199
# database configuration from ActiveRecord::Base.
200
@base_model = Class.new(ActiveRecord::Base) do
0 commit comments