How To Get Current Time In The System's Time Zone In Rails

Posted by Weston Ganger on June 13, 2015

Its useful to get the current time in the correct time zone instead of UTC.

To do this in Rails.

# Return Current Time in UTC

# Return Current Time in your Time Zone

Related External Links:

Posted in Rails and Tagged with ruby rails time time-zone 

Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts