Method: Mongoid::Config#time_zone

Defined in:
lib/mongoid/config.rb

#time_zoneString

Get the time zone to use.

Examples:

Get the time zone.

Config.time_zone

Returns:

  • (String)

    The time zone.

Since:

  • 3.0.0



252
253
254
# File 'lib/mongoid/config.rb', line 252

def time_zone
  use_utc? ? "UTC" : ::Time.zone
end