I am trying to find users by Europe/Chisinau timezone. An example of such a user:
'device':{
'from':'{"status":"success","country":"Moldova","countryCode":"MD","zip":"MD-3300","timezone":"Europe/Chisinau"}'
}
Here the from field is a string. Here's what I've tried using:
In [1]: from google.cloud import firestore
...: firestore_client = firestore.Client.from_service_account_json('creds.json')
...: ref = firestore_client.collection('databases').document('testing')
In [2]: ref.collection(u'users').where(u'device.from', u'>=', u'Europe/Chisinau').where(u'device.from', u'<=', u'Europe/Chisinau').get()
Out[2]: []
As you can see, I got an empty list. I have used this module.