mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
Parse the session expiry time to a Time instead of DateTime to allow comparison.
This commit is contained in:
parent
16b3de443d
commit
fa9d517e59
1 changed files with 1 additions and 1 deletions
|
@ -80,6 +80,6 @@ class LoginController < ApplicationController
|
|||
|
||||
def expiry_time
|
||||
return Time.zone.now + 10 unless session['expiry_time']
|
||||
DateTime.strptime(session['expiry_time'], "%FT%T.%L%Z")
|
||||
Time.zone.parse(session['expiry_time'])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue