Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Time.now is set to wrong date

Hi guys, I was using Time.now method and when I look what value is stored in database, it is as follows which is not correct:

2000-01-01 06:17:01 UTC

Any idea where to make a correction? Thanks, Miroslav

Kevin Naegele
Kevin Naegele
10,868 Points

Time.now pulls from the computer/hosting your code is running on. Is this being down on your machine or a remote server?

1 Answer

Time.now displays the time on your local machine or the server you are running ruby.