'Returns an (aware) datetime object containing the last modified time if
USE_TZ is True, otherwise returns a naive datetime in the local timezone.'

def get_modified_time(self, name):

    name = self._normalize_name(self._clean_name(name))
    entry = self.entries.get(name)
    if (entry is None):
        entry = self.bucket.Object(self._encode_name(name))
    if settings.USE_TZ:
        return entry.last_modified
    else:
        return localtime(entry.last_modified).replace(tzinfo=None)
