Hello,

Any idea how i can use the following date format transparently in my
DM models (macos objective c way of saving dates in sqlite)?
Now i hit a consistent Couldn't parse date: 238756143.73145

In sqlite the following gives me back the correct date...
SELECT datetime(ZCREATIONDATE, 'unixepoch', '+31 years') from
zcustomizable;

Can i overwrite the method that reads these particular dates
transparently for a ruby DateTime object?

class Article
  include DataMapper::Resource
         storage_names[:default] = 'ZCUSTOMIZABLE'
         ....
         property :date_added, DateTime,          :field =>
"ZCREATIONDATE"
         ....
end

Thanks for any insight how to handle these.
Best,
Tiele




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

Reply via email to