r393 - trunk/chorem-webmotion/src/main/java/org/chorem/webmotion/actions
Author: jcouteau Date: 2013-09-20 19:25:15 +0200 (Fri, 20 Sep 2013) New Revision: 393 Url: http://chorem.org/projects/chorem/repository/revisions/393 Log: fixes #936: [Tableau de budget] Changement des dates par d?\195?\169faut Modified: trunk/chorem-webmotion/src/main/java/org/chorem/webmotion/actions/DashboardAction.java Modified: trunk/chorem-webmotion/src/main/java/org/chorem/webmotion/actions/DashboardAction.java =================================================================== --- trunk/chorem-webmotion/src/main/java/org/chorem/webmotion/actions/DashboardAction.java 2013-09-20 15:44:12 UTC (rev 392) +++ trunk/chorem-webmotion/src/main/java/org/chorem/webmotion/actions/DashboardAction.java 2013-09-20 17:25:15 UTC (rev 393) @@ -122,27 +122,6 @@ return attachments; } - /** - * return le nombre de jour entre 2 dates. Les demi-journées doivent etre - * posée jusqu'à 12h00 - * - * @param v - * @return - */ -// public double computeVacationDays(Vacation v) { -// Date endDate = v.getEndDate(); -// if (0 == DateUtils.getFragmentInSeconds(endDate, Calendar.DATE)) { -// // on rajoute un jour pour que les vances du 01/01/2012 au 01/01/2012 -// // represente bien un jour plein -// endDate = DateUtils.addDays(endDate, 1); -// } -// long end = endDate.getTime(); -// long begin = v.getBeginDate().getTime(); -// -// double result = (end - begin) / (1000.0 * 3600.0 * 24.0); -// return result; -// } - public double computeWorkingDays(ChoremClient client, Time t) { Configuration config = client.getConfiguration(); long workingTime = t.getEndDate().getTime() - t.getBeginDate().getTime(); @@ -842,7 +821,7 @@ if (start == null) { start = new Date(); - start = DateUtils.addMonths(start, -1); + start = DateUtils.addMonths(start, -2); } if (end == null) {
participants (1)
-
jcouteau@users.chorem.org