Incorporate Ryan Daigle's patch (thanks Ryan!) to fix errors parsing non-US-style dates on the tickler show_from field. Refactor date parsing calls to use a new method in the base action controller.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@295 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2006-07-28 19:03:34 +00:00
parent e0e407d99a
commit c606e646b3
5 changed files with 20 additions and 7 deletions

View file

@ -51,7 +51,7 @@ class ContextController < ApplicationController
@item.attributes = params["todo"]
if @item.due?
@item.due = Date.strptime(params["todo"]["due"], @user.preferences["date_format"])
@item.due = parse_date_per_user_prefs(params["todo"]["due"])
else
@item.due = ""
end