[DataMapper] Re: Dates

2013-09-29 Thread kilian . sprotte
Hi, I am new to DataMapper, trying it out with sqlite3. I declared a property as property :created_at, Time, :default = lambda {|r,p| Time.now } What confuses me is that the created_at property ends up in the db as '2013-09-29T12:14:09.074859+02:00', but when I access it from ruby, I get a

Re: [DataMapper] Re: Dates

2013-09-30 Thread Kilian Sprotte
Hi, thanks for replying! I will try DateTime. I do not really understand the solution, though. If I had tried to use Date, ok, but shouldn't Time work equally in this respect to DateTime? Best Kilian On Sep 30, 2013 12:33 AM, postmodern postmodern.m...@gmail.com wrote: I think you want a

Re: [DataMapper] Re: Dates

2013-09-30 Thread kilian . sprotte
Hi, the concern of a truncated Time does not occur with postgresql, only with sqlite3 (I have only tried the 2 so far). Best, Kilian -- You received this message because you are subscribed to the Google Groups DataMapper group. To unsubscribe from this group and stop receiving emails from

Re: [DataMapper] Re: Dates

2013-09-30 Thread Kilian Sprotte
Hi! Still strange with sqlite3 to see the string '2013-09-29T12:14:09.074859+ 02:00' in the db and to get a Time 2013-09-29 00:00:00 +0200. Should this be reported as a bug? On Mon, Sep 30, 2013 at 4:12 PM, christian m.krist...@web.de wrote: sqlite3 is anyways different since it just stores a