Commit a9f59ae1 authored by Rafael Monnerat's avatar Rafael Monnerat

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
parent 51b923f0
......@@ -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>
......
792
\ No newline at end of file
793
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment