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

Python Build a Social Network with Flask How to Win Friends Show Follower Posts

Y B
Y B
14,136 Points

I get 45 years ago timestamp for posts too - what's causing the error?

(Flask Follower posts) As per Kenneth's video, I get the weird 45 years ago timestamp for posts too - what's causing the error?

2 Answers

Tom Sager
Tom Sager
18,987 Points

Many (most?) web servers run on Linux, which is a open source descendent of Unix. From wikipedia

The first edition Unix Programmer's Manual dated 3 November 1971 defines the Unix time as "the time since 00:00:00, 1 January 1971, measured in sixtieths of a second"

It is probably not a coincidence that the "beginning of time" was 45 years ago. If the value of your time variable is zero, Unix / Linux would parse that as 1/1/1971.

Y B
Y B
14,136 Points

That's probably it thanks