-
-
Save redsquirrel/6ea477f9c9e2557b69b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Date.today | |
=> Tue, 25 Aug 2015 | |
> Time.at(Date.today.to_datetime.to_i).to_date | |
=> Mon, 24 Aug 2015 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thankfully:
Time.zone.at
fixes all the things. 👍