On Jun 4, 4:46 pm, Jeremy Evans <[EMAIL PROTECTED]> wrote:
> What may not have been clear is that when you load data from the
> database, the model does not typecast it, so if the database adapter
> gives you a Time, it doesn't get converted to a DateTime.

Ah I see so this is why the problem occured.

> The database adapters are in would be in sequel_core/lib/sequel_core/
> adapters.  Find your adapter and change the type conversion to use
> DateTime instead of Time.  If you want to support choosing either,
> modify Datebase#typecast_value in database.rb to return whichever
> option is selected, and do the same in the adapter.

If I get some free time I'll have a go at a patch. Thanks for the help

Farrel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to sequel-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to