python - Why do Datastore datetimes look different in appengine console vs appengine dashboard? -


i have simple ndb model i'm entering date-of-birth user:

class contact(ndb.model):     first_name= ndb.stringproperty()     last_name= ndb.stringproperty()     dob = ndb.datetimeproperty() contact1_dob = datetime.strptime('12/17/1989', "%m/%d/%y").date() contact1 = contact(first_name='homer', last_name='simpson', dob=contact1_dob ) contact1_result = contact1.put() 

loading datastore works fine, , when @ data via google appengine dashboard https://appengine.google.com/ dob looks perfect e.g. 1989-12-17 00:00:00

but when @ data via appengine console https://console.developers.google.com dob 4 hours behind (i'm in new york) e.g. 1989-12-16 20:00:00

i can guess timezone issue if wouldn't dates in both dashboard , console match?

also if retrieve entity via .get() call , view raw data date entered it, e.g. 1989-12-17 00:00:00, want.

so why appengine console not rendering datastore dates accurately?

the old dataviewer displays utc, new console attempts display in timezone. datetimes utc inside application (so if .put() or .get() saved utc)

so setting @ midnight utc inside app , doing put, looking @ in new console showing 20:00:00t (8pm est) day before

there have been reported issues around timezones when using remote api... not sure if you're using of puts/gets... might play part (but thought had fixed now)


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -