Commit 5baa9b48 authored by Gabriel Monnerat's avatar Gabriel Monnerat

put the date in the format mm-dd-yyyy

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42779 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4051cc3a
......@@ -60,8 +60,8 @@ import random\n
\n
def convertToERP5DateTime(date):\n
date, hour = date.split()\n
day, month, year = date.split("/")\n
return DateTime("%s/%s/%s %s" % (year, month, day, hour))\n
month, day, year = date.split("/")\n
return DateTime("%s/%s/%s %s" % (month, day, year, hour))\n
\n
portal = context.getPortalObject()\n
form = context.REQUEST.form\n
......
......@@ -71,14 +71,14 @@ function Edit(data){\n
var dataHash = {};\n
for (var i=0; i<data.length; i++)\n
dataHash[data[i].name] = data[i].value;\n
start_date = dataHash.start_date_day + "/" + \n
dataHash.start_date_month + "/" + \n
start_date = dataHash.start_date_month + "/" + \n
dataHash.start_date_day + "/" + \n
dataHash.start_date_year + " " + \n
dataHash.start_date_hour + ":" + \n
dataHash.start_date_minute;\n
\n
stop_date = dataHash.stop_date_day + "/" + \n
dataHash.stop_date_month + "/" + \n
stop_date = dataHash.stop_date_month + "/" + \n
dataHash.stop_date_day + "/" + \n
dataHash.stop_date_year + " " + \n
dataHash.stop_date_hour + ":" + \n
dataHash.stop_date_minute;\n
......
203
\ No newline at end of file
205
\ 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