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 trialY B
14,136 PointsI 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
18,987 PointsMany (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.
Christopher Shaw
Python Web Development Techdegree Graduate 58,248 PointsI know this is an old post now, but have posted the solution here: https://teamtreehouse.com/community/in-social-web-app-in-python-it-says-46-years-ago-in-postedago
Y B
14,136 PointsY B
14,136 PointsThat's probably it thanks