From 14603b3de62074d73436e98497d643076ddcad06 Mon Sep 17 00:00:00 2001 From: "mostafah%oeone.com" Date: Wed, 4 Aug 2004 13:10:46 +0000 Subject: [PATCH] Removed duplicate function. ( Bug 220075 ) git-svn-id: svn://10.0.0.236/trunk@160340 18797224-902f-48f8-a5cc-f745e15eee43 --- .../resources/content/unifinderToDo.js | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/mozilla/calendar/resources/content/unifinderToDo.js b/mozilla/calendar/resources/content/unifinderToDo.js index f15f260005d..e25071a2211 100644 --- a/mozilla/calendar/resources/content/unifinderToDo.js +++ b/mozilla/calendar/resources/content/unifinderToDo.js @@ -131,7 +131,11 @@ function finishCalendarToDoUnifinder( ) function formatUnifinderToDoDateTime( datetime ) { - return gCalendarWindow.dateFormater.formatDateTime( datetime, true ); + // datetime is from todo object, it is not a javascript date + if (datetime != null && datetime.getTime() != kNODATE) + return gCalendarWindow.dateFormater.formatDateTime( new Date(datetime.getTime()), true ); + else + return ""; } /** @@ -246,18 +250,6 @@ function checkboxClick( ThisToDo, completed ) gICalLib.modifyTodo( ThisToDo ); } -/** -* Helper function to display todo datetimes in the unifinder -*/ - -function formatUnifinderToDoDateTime( datetime ) -{ - // datetime is from todo object, it is not a javascript date - if (datetime != null && datetime.getTime() != kNODATE) - return gCalendarWindow.dateFormater.formatDateTime( new Date(datetime.getTime()), true ); - else - return ""; -} /* This function return the progress state of a ToDo task :