def datetime(self):
        """
        Returns a datetime object at the end of the selected
        (or current) date. This is needed to properly filter
        transactions that occur during the day we are filtering
        for
        """
        # note: empty string is parsed as today's date
        date = self.config.get('date') or ''

        try:
            date = parser.parse(date).date()
        except __HOLE__:
            date = datetime.utcnow().date()

        return datetime(date.year, date.month, date.day, 23, 59, 59)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/commtrack/data_sources.py/SimplifiedInventoryDataSource.datetime