-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix datetime regression #743
Conversation
Looks good -thanks for taking the time to do such a thorough pull request Tom! |
Looks good AFAICT. Thanks for addressing this! I was hoping to get around to figuring out a fix but you beat me to it and did a better job than I could have. |
i'm not sure if this behavior is right. shouldn't to_native return a string and not an object? |
I guess its a design decision to be made. I wouldn't say that to_native On Fri, Mar 22, 2013 at 2:19 AM, Stephan Groß [email protected]:
|
Having datetime objects returned from the fields and treated as one of the 'primitive' types seems reasonable to me, and there's certainly a case to be made that how those should be handled is at least partly a renderer concern. For example the current JSONRenderer uses ECMA 262 (the javascript spec) compliant date time strings. (Subset of iso8601) But other renderer types might have other requirements about how datetimes should be represented. Anyways short story is that on reflection I'm happy this is the right thing to do. |
Refs #740.