aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/user.rb
diff options
context:
space:
mode:
authorSayan Chakraborty <mail.sayanc@gmail.com>2017-07-01 19:18:18 +0530
committerSayan Chakraborty <mail.sayanc@gmail.com>2017-12-17 23:56:16 +0530
commiteb73dfc0677cb5b3a0f559020fe5d7df556056b4 (patch)
treef3973a4e3105381205e669228f12ef46476e3b3f /activemodel/test/models/user.rb
parentde354cc3573e8b6e81448080a21c313f5bdbab7b (diff)
downloadrails-eb73dfc0677cb5b3a0f559020fe5d7df556056b4.tar.gz
rails-eb73dfc0677cb5b3a0f559020fe5d7df556056b4.tar.bz2
rails-eb73dfc0677cb5b3a0f559020fe5d7df556056b4.zip
Return correct date in ActiveModel for time to date conversions
time.to_date conversion happens considering leap years so a conversion of "Day.new({'day(1i)'=>'1', 'day(2i)'=>'1', 'day(3i)'=>'1'})" results in saving the date as Mon, 03 Jan 0001 which might seem weird on the user level, hence falling back to parsing on string level resolves this data mismatch Fixes #28521
Diffstat (limited to 'activemodel/test/models/user.rb')
0 files changed, 0 insertions, 0 deletions