Removed duplicate function. ( Bug 220075 )

git-svn-id: svn://10.0.0.236/trunk@160340 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mostafah%oeone.com
2004-08-04 13:10:46 +00:00
parent 820523d394
commit 14603b3de6

View File

@@ -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 :