Skip to content

Loading…

Changing expiration to use UTC time and ISO-8601 format. This solved iss... #2

Open
wants to merge 1 commit into from

1 participant

@marks

...ues I was having with an app I had implemented user timezones

To implement time zones, I followed http://railscasts.com/episodes/106-time-zones-revised

@marks marks Changing expiration to use UTC time and ISO-8601 format. This solved …
…issues I was having with an app I had implemented user timezones

To implement time zones, I followed http://railscasts.com/episodes/106-time-zones-revised
fab0454
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 9, 2013
  1. @marks

    Changing expiration to use UTC time and ISO-8601 format. This solved …

    marks committed
    …issues I was having with an app I had implemented user timezones
    
    To implement time zones, I followed http://railscasts.com/episodes/106-time-zones-revised
Showing with 1 addition and 1 deletion.
  1. +1 −1 gallery-jquery-fileupload/app/helpers/upload_helper.rb
View
2 gallery-jquery-fileupload/app/helpers/upload_helper.rb
@@ -16,7 +16,7 @@ def initialize(options)
aws_secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"],
bucket: ENV["AWS_S3_BUCKET"],
acl: "public-read",
- expiration: 10.hours.from_now,
+ expiration: 10.hours.from_now.utc.iso8601,
max_file_size: 500.megabytes,
as: "file"
)
Something went wrong with that request. Please try again.