Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TZ awareness in S3Boto3Storage #181

Merged
merged 1 commit into from
Aug 4, 2016

Commits on Aug 3, 2016

  1. Fix TZ awareness in S3Boto3Storage

    Django expects a naive datetime from modified_time()[1]. Django 1.10
    adds get_modified_time()[2], which respects USE_TZ.
    
    This commit fixes modified_time(), adds get_modified_time(), and adds
    relevant tests.
    
    [1]: https://docs.djangoproject.com/en/1.10/ref/files/storage/#django.core.files.storage.Storage.modified_time
    [2]: https://docs.djangoproject.com/en/1.10/ref/files/storage/#django.core.files.storage.Storage.get_modified_time
    JshWright committed Aug 3, 2016
    Configuration menu
    Copy the full SHA
    f3de7da View commit details
    Browse the repository at this point in the history