#17 new
chris finne

assigning a DateTime to a has_dates attribute doesn't work properly

Reported by chris finne | April 14th, 2010 @ 03:31 PM

Note the formatting of the string isn't done properly when a DateTime is saved

http://gist.github.com/366422

This is because in
SimpleRecord::Translations.pad_and_offset

it checks:
x.respond_to?(:iso8601)

But DateTime doesn't respond to that method, so it doesn't get formatted with the @@date_format

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

A drop in replacement for ActiveRecord for Amazon SimpleDB.

Code hosted at http://github.com/appoxy/simple_record

Shared Ticket Bins

People watching this ticket

Pages