lib/sequel/extensions/named_timezones.rb in sequel-3.28.0 vs lib/sequel/extensions/named_timezones.rb in sequel-3.29.0
- old
+ new
@@ -19,9 +19,14 @@
# Sequel.application_timezone = 'America/Los_Angeles'
#
# Then, before data is stored in the database, it is converted to New
# York time. When data is retrieved from the database, it is
# converted to Los Angeles time.
+#
+# Note that typecasting from the database timezone to the application
+# timezone when fetching rows is dependent on the database adapter,
+# and only works on adapters where Sequel itself does the conversion.
+# It should work on mysql, postgres, sqlite, ibmdb, and jdbc.
require 'tzinfo'
module Sequel
self.datetime_class = DateTime