Hi Marzia, Thanks for the quick reply. I checked the query again with putting more data in the datastore, as a part of the re-put() (update) process in App Engine. This still does not fix the issue. I cleared my data in the local env and tried again, still same. I have uploaded to code to App Engine also.
Can it be related to the timezone. I also tried with utcnow(), same result. I can put up more of my code, as soon as I get to my Dev machine. Thanks, Arun Shanker Prasad. On Feb 13, 9:50 pm, Marzia Niccolai <ma...@google.com> wrote: > Hi, > > From the sample you have provided, I don't notice anything that shouldn't > work. The only issue I could think of is the issue of incomplete indexes > for the entity you are trying to query, in which case re-put()ing the entity > should solve the issue. > > If you could post the complete code you are using, we can also look at that > and see if something is amiss. > > -Marzia > > On Fri, Feb 13, 2009 at 4:23 AM, Arun Shanker Prasad < > > arunshankerpra...@gmail.com> wrote: > > > Hi All, > > > I have a Model with the posted on date set as a particular datetime. > > The property is a DateTime Property in the datastore. The problem is > > that when I try to do a filter query on the model like, > > > Posts.all().filter('posted_on >=', dt1).filter('posted_on <', dt2) > > > where, > > dt1 = datetime.datetime.today() > > dt1 = dt1.replace(hour=0, minute=0, second=0, microsecond=0, > > tzinfo=None) > > > and dt2 is incremented to one day ahead of the current date. > > > My problem is that this query returns an empty list. I know there are > > values in the datastore.... > > > Am I doing something wrong here? > > > Thanks, > > Arun Shanker Prasad. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---