acm-ucr/acm-phoenix — pull request #2 by paranoiacblack (2012-10-16 14:36:32+00:00)
Title: Fixed problem concerning article creation date being incorrect.

Fixed a problem concerning datetimes being incorrect. The original code was in the Post model, where I had `created = db.Column(db.DateTime, default=datetime.utcnow())`. Well, the way I interpreted that was that when a post object was created, it would set `created` to `now()`. In reality, that meant that every post object was initialized to having a datetime that was the same time the uwsgi instance was last restarted. Now, in the `__init__` function, it will call datetime.utcnow() to make sure created is correctly initialized.