diff --git a/lib/arjdbc/jdbc/type_cast.rb b/lib/arjdbc/jdbc/type_cast.rb
index <HASH>..<HASH> 100644
--- a/lib/arjdbc/jdbc/type_cast.rb
+++ b/lib/arjdbc/jdbc/type_cast.rb
@@ -104,9 +104,10 @@ module ActiveRecord::ConnectionAdapters
             return nil unless time
 
             time -= offset
-            Base.default_timezone == :utc ? time : time.getlocal
+            ActiveRecord::Base.default_timezone == :utc ? time : time.getlocal
           else
-            Time.public_send(Base.default_timezone, year, mon, mday, hour, min, sec, microsec) rescue nil
+            timezone = ActiveRecord::Base.default_timezone
+            Time.public_send(timezone, year, mon, mday, hour, min, sec, microsec) rescue nil
           end
         end
DateTime columns are returned always as nil values.
The "rescue nil" in the module
ActiveRecord::ConnectionAdapters::Jdbc::TypeCast is hiding the
error.