Admin/dashboard-next.json TypeError (no implicit conversion of Date into String)

@sam Before the patch the r variable discourse/app/models/report.rb at main · discourse/discourse · GitHub was:
{"hours"=>5.8700340581401, "date"=>"2018-05-21"}

After patch:
{"hours"=>5.8700340581401, "date"=>Mon, 21 May 2018}

I fixed it with FIX: crashes with date conversion in reports · discourse/discourse@fa43969 · GitHub as we don’t need Date parsing anymore since it’s already a Date.

7 Likes