Skip to content Skip to sidebar Skip to footer

Why Do Datastore Datetimes Look Different In Appengine Console Vs Appengine Dashboard?

I have a very simple NDB model for which I'm entering Date-of-Birth for a user: class Contact(ndb.Model): first_name= ndb.StringProperty() last_name= ndb.StringProperty()

Solution 1:

The old dataviewer always displays as UTC, the new console attempts to display in your timezone. Datetimes are always UTC from inside your application (so if you do a .put() or .get() it will be saved as UTC)

So you are setting it at midnight UTC inside your app and doing a put, then looking at it in the new console which is showing you 20:00:00T (8pm EST) the day before

There have been reported issues around timezones when using Remote API... not sure if you're using that for any of your puts/gets... might also play a part (but I thought they had those mostly fixed by now)

Post a Comment for "Why Do Datastore Datetimes Look Different In Appengine Console Vs Appengine Dashboard?"