From 95fbbab0d24cf062e540ce860996db9cf3247b62 Mon Sep 17 00:00:00 2001 From: Nate Lowrie Date: Mon, 28 Dec 2009 12:03:36 -0500 Subject: [PATCH] Revert "Changed the date format so that start date and end date of the sprint don't" This reverts commit 22875a468d2effb6cb5617db64d42b5daab7973a. --- app/helpers/backlogs_helper.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/helpers/backlogs_helper.rb b/app/helpers/backlogs_helper.rb index ab5b55b46d..6624529c3d 100644 --- a/app/helpers/backlogs_helper.rb +++ b/app/helpers/backlogs_helper.rb @@ -2,22 +2,22 @@ module BacklogsHelper def backlog_date(backlog, field_name) d = backlog.send(field_name) - d.nil? ? "(not set)" : d.strftime("%m-%d-%y") + d.nil? ? "(not set)" : d.strftime("%Y-%m-%d") end - + def mark_closed_if_so(item_or_task) return if item_or_task.nil? item_or_task.issue.status.is_closed? ? "closed" : "" end - + def link_to_main_backlog link_to "All Backlog Items", :controller => 'items', :project_id => @project.id end - + def link_to_backlog(backlog) link_to backlog.version.name, backlog_url(backlog) end - + def say_version(issue) issue.fixed_version.nil? ? "-" : issue.fixed_version.name end