python - DateTimeProperty time-zone -


using gea , trying set time-zone datetimeproperty below. set timezone in model class , not when creating entry.

class person(ndb.model):     date_created = ndb.datetimeproperty(auto_now_add=true)  

you not setting timezone, setting datetime, when create entity. timezone should stored seperately. appengine datetime functionality works utc.

you should convert utc when performing queries, , timezone want when displaying content.


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

c++ - Serialize a class with a Qlist of custom classes as member (using QDataStream) -

Read video using VideoReader function in Matlab? -