-
Notifications
You must be signed in to change notification settings - Fork 137
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
Parse::Date should support Times and Dates not just DateTimes #35
Comments
we should do away with Parse::Date entirely and just serialize Times, Dates, and DateTimes properly on requests |
Agreed. Sent from my iPhone On Jan 21, 2013, at 8:16 AM, Eric Jensen notifications@github.com wrote:
|
So proposed api should just be: game_score["set_at"] = DateTime.now
# or
game_score["set_at"] = Time.now
# or
game_score["set_at"] = Date.now
# or
game_score["set_at"] = "01-22-2013" # mm-dd-yyy Also, I think we should still keep Also also, should the serialization occur on request or right when the attribute gets set? Does it make any difference? |
I don't think we should mess with parsing people's strings into dates for Other nice properties would be that you can compare it directly ala While we're in that setter, it's a little weird that we allow you to set On Tue, Jan 22, 2013 at 11:52 AM, Alan deLevie notifications@github.comwrote:
|
are you sure you want to close this? it's insanely annoying that you have to put DateTimes into parse-ruby-client and it barfs on Times |
Whoops! Thought this was a different one. |
@ericcj let's discuss about this, I have some experiencing dealing with Date / Time / Timezone and so on with Rails and I agree. All parse-ruby-clients should do is:
How do you propose we go about this? |
serialization should probably just give you DateTimes and coerce any of these instead of handing out Parse::Dates in the first place, but at the very least we shouldn't blow up on Times and Dates, or even ActiveSupport::TimeWithZone
The text was updated successfully, but these errors were encountered: