mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-19 23:46:10 +01:00
fix #856 where DateTimes supplied through the rest api was not converted to the users timezone
This commit is contained in:
parent
a4de0e62af
commit
27715aa453
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ class Preference < ActiveRecord::Base
|
|||
date = nil
|
||||
|
||||
if s.is_a?(Time)
|
||||
date = s.to_date
|
||||
date = s.in_time_zone(time_zone).to_date
|
||||
elsif s.is_a?(String)
|
||||
date = Date.strptime(s, date_format)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue