fix #856 where DateTimes supplied through the rest api was not converted to the users timezone

This commit is contained in:
Reinier Balt 2009-03-24 23:05:23 +01:00
parent a4de0e62af
commit 27715aa453

View file

@ -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