Skip to content
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

createdAt and updatedAt are left in Parse::Object hash as Strings #92

Open
ericcj opened this issue May 23, 2013 · 4 comments
Open

createdAt and updatedAt are left in Parse::Object hash as Strings #92

ericcj opened this issue May 23, 2013 · 4 comments

Comments

@ericcj
Copy link
Contributor

ericcj commented May 23, 2013

which means they're passed around as strings which will never match conditions if you do something like:

2.0.0-p0 :011 > Parse::Query.new('_User').greater_than('createdAt', Parse::Query.new('_User').get.first['createdAt']).get
2013-05-23 17:16:06 [INFO] Parse query for /1/users {"where"=>"{}"}
2013-05-23 17:16:07 [INFO] Parse query for /1/users {"where"=>"{"createdAt":{"$gt":"2013-05-02T15:25:43.714Z"}}"}

@xavdid
Copy link
Collaborator

xavdid commented Jun 1, 2015

@ericcj what's the correct object to store them as? Time objects?

@xavdid xavdid added the bug label Jun 1, 2015
@ericcj
Copy link
Contributor Author

ericcj commented Jun 1, 2015

all other dates come back as Parse::Date

@rhymes
Copy link
Contributor

rhymes commented Jun 19, 2015

@ericcj I think it has something to do with how Parse sends back the query results. Can you provide an example of what do you mean when you say

all other dates come back as Parse::Date

?

@rhymes rhymes self-assigned this Jun 19, 2015
@syampsijk
Copy link

can i split the dates of updatedAt when i call in my javascript site

@rhymes rhymes removed their assignment Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants