Create Entity timestamp error

104 views
Skip to first unread message

Mike Rottina

unread,
Nov 15, 2012, 11:10:23 PM11/15/12
to google-a...@googlegroups.com
Hi,

I am trying to create a user in my datastore through the GAE web interface.

I am in the "Create Entity" section. I am filling in the fields.

I put something like this in the timestamp field (type: int), and it throws an error...
2012-11-15 22:51:16.668000

I see other entries with this format for the timestamp.

Any idea what's wrong?

Thanks,
Mike

Nijin Narayanan

unread,
Nov 16, 2012, 9:38:37 AM11/16/12
to google-a...@googlegroups.com
Hi Mike,

For saving the datetime data the filed's datatype should be "datetime". It seems you are using "int" datatype. https://developers.google.com/appengine/docs/python/datastore/typesandpropertyclasses#DateTimeProperty

-Nijin Narayanan





--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/nDerddff8r4J.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Mike Rottina

unread,
Nov 16, 2012, 12:16:53 PM11/16/12
to google-a...@googlegroups.com
Hi Nijin,

Thanks for responding! The only options i see in the dropdown for type are:  int  or  null?

I guess I need to get timestamp in the dropdown as an option. but how?

-Mike
Reply all
Reply to author
Forward
0 new messages