Closed d11wtq closed 13 years ago
@solnic can you review/comment on this?
@dkubb @d11wtq this looks good although it does make me sad we need to do such workarounds. I'm gonna merge it in now since I can't tell you at this very moment when I will have time to finish Property API with dump_as/load_as settings.
It's better to have this fix now anyway, thanks for the patch!
Ok, this one is what you want. I've made sure there's solid test coverage on this, but a review would be appreciated, if you can see any edge cases.
The current EpochTime is completely broken, as demonstrated in the comments of my previous pull request. Let me know if you have any questions.
What this fixes:
#typecast
correctly converts to aTime
, just like#load
does when the object is fresh.DateTime
/Time
, and cast them to realTime
objects.DateTime
/Time
, due to the fact that's what it models.Integer
, accepts a numeric string as input, and assumes it's a UNIX timestamp.