From a9f59ae1b4219344386d5e61fcb83537d6e5d496 Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Mon, 14 Apr 2008 17:01:19 +0000 Subject: [PATCH] Revert the change in order to keep the old behaviour for now. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20507 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_core/Planning_roundBoundToDay.xml | 21 +++++++++---------- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Planning_roundBoundToDay.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Planning_roundBoundToDay.xml index d07cf030a8..0accc150a0 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Planning_roundBoundToDay.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Planning_roundBoundToDay.xml @@ -71,18 +71,17 @@ Script used by PlanningBox validator to round the bound dates to the\n closest full day.\n """\n -if axis == \'begin\':\n - if full_date.hour() > 12: \n - return DateTime(full_date.Date()) + 1\n - else:\n - return DateTime(full_date.Date())\n +if full_date.hour() > 12: \n + return DateTime(full_date.Date()) + 1\n +else:\n + return DateTime(full_date.Date())\n \n -if axis == \'end\':\n - # round to 23:59:59\n - if full_date.hour() > 12:\n - return DateTime(full_date.Date()) + 1 - (1.0/(24*3600))\n - else:\n - return DateTime(full_date.Date()) - (1.0/(24*3600))\n +#if axis == \'end\':\n +# # round to 23:59:59\n +# if full_date.hour() > 12:\n +# return DateTime(full_date.Date()) + 1 - (1.0/(24*3600))\n +# else:\n +# return DateTime(full_date.Date()) - (1.0/(24*3600))\n ]]></string> </value> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 3430d41490..4d5b34789e 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -792 \ No newline at end of file +793 \ No newline at end of file -- 2.30.9