test convertTaskToMap based on time