#42 √ resolved
Sam Smoot

MySQL created_at time information missing

Reported by Sam Smoot | November 5th, 2007 @ 03:37 PM | in 0.2.4 Release

A created_at property on a model means the model gets a before_create filter that automatically sets the current timestamp on a database record before it's saved. When the database backend is MySQL (tested on MySQL 5.x on OS X 10.4), the date value is set appropriately but the time is always 00:00:00.

The value in memory after the save is correct (includes time) and when Sqlite is used in place of MySQL, the value is correct. This would seem to indicate that it's something in the MySQL driver itself.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Tags