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

Date type properties aren't returned via RESTful [moved] #363

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed

Date type properties aren't returned via RESTful [moved] #363

lvca opened this issue Dec 10, 2012 · 0 comments

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 363 moved from a Google Code project.
Added by 2011-05-12T18:42:18.000Z by Zany...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, v1.0rc2

Original description

<b>What steps will reproduce the problem?</b>
1.Create a class and add a date type property
2.Create a record with a date
3.Connect to the database via RESTful http and browse the record

<b>What is the expected output? What do you see instead?</b>
Expected output:

&quot;result&quot;: [{
     &quot;@type&quot;: &quot;d&quot;, &quot;@rid&quot;: &quot;#5:6&quot;, &quot;@version&quot;: 0, &quot;@class&quot;:
&quot;Person&quot;,
     &quot;datecreated&quot;: SOME FORM OF DATE,
   }
 ] 

instead:

&quot;result&quot;: [{
     &quot;@type&quot;: &quot;d&quot;, &quot;@rid&quot;: &quot;#5:6&quot;, &quot;@version&quot;: 0, &quot;@class&quot;:
&quot;Person&quot;,
     &quot;datecreated&quot;: null,
   }
 ] 

The date is visible if you browse the record in the console, but when you browse it over http its declared as null.
I used the following commands in the console in a newly created database:
>> create class person
>> create property person.datecreated date
>> insert into person ('datecreated') values ('2011-12-05 17:30:33')

Then I connected with HTTPrestful to the remote database and browsed the class, browsed the record and did a sql &quot;select from person&quot; and the date in the record was &quot;null&quot; although it was showing correctly when viewed with a console locally connected to the database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant