Fork me on GitHub
Toggle navigation
Rails Best Practices
Contributing
Contact Us
timezone
Use Time.zone.now instead of Time.now
22 Oct 2014
Dan Kohn
The ActiveSupport method Time.zone.now should be used in place of the Ruby method Time.now to pickup the local time zone.
Read More
Tags
timezone
Tags
DRY
I18n
RESTful
active_record
assets
background job
bundler
cache
capistrano
collection
comment
config
controller
convention
css sprite
cucumber
deployment
exception
gem
helper
javascript
mailer
migration
model
naming
observer
params
partial
performance
plugin
query
rails
rails2
refactor
render
rescue
route
rspec
search
security
system administration
tab
task
timezone
upload
version control
view
whitespace