lib/landable/traffic/user_tracker.rb in landable-1.9.1 vs lib/landable/traffic/user_tracker.rb in landable-1.9.2
- old
+ new
@@ -11,10 +11,10 @@
hash = session[:landable] || {}
@cookie_id = cookies[:landable]
@visit_id = hash[KEYS[:visit_id]]
- @last_visit_time = hash[KEYS[:visit_time]]
+ @last_visit_time = hash[KEYS[:visit_time]].try :to_time
@visitor_id = hash[KEYS[:visitor_id]]
@visitor_hash = hash[KEYS[:visitor_hash]]
@attribution_hash = hash[KEYS[:attribution_hash]]
@referer_hash = hash[KEYS[:referer_hash]]
end