changed the date processing for tasks

Resolves: http://bugs.web2project.net/view.php?id=1218