Commit 6c0be291 authored by Roque's avatar Roque

erp5_web_project_ui: fix front page dates

parent e5088d23
......@@ -19,8 +19,9 @@
// Where to define/get the limit date? by portal_type or the same for all documents?
//date ISO string format: "yyyy-mm-ddThh:mm:ss.mmmm"
//JIO query date format: "yyyy-mm-dd hh:mm:ss"
LIMIT_DATE = new Date(new Date().setFullYear(new Date().getFullYear() + 1))
LIMIT_DATE = new Date(new Date().setFullYear(new Date().getFullYear() - 1))
.toISOString().substring(0, new Date().toISOString().length - 5).replace("T", " "),
NOW_DATE = new Date().toISOString().substring(0, new Date().toISOString().length - 5).replace("T", " "),
//XXX hardcoded portal_types, states and titles dict
PORTAL_TITLE_DICT = {"Task": "Tasks",
"Test Result" : "Test Results",
......@@ -401,10 +402,9 @@
})
.declareJob("renderOtdatedMilestoneInfo", function () {
//XXX For testing. REMOVE and use LIMIT_DATE
var limit_date = new Date().toISOString()
.substring(0, new Date().toISOString().length - 5).replace("T", " ");
return renderMilestoneLines(this, limit_date);
//XXX For testing. use LIMIT_DATE
return renderMilestoneLines(this, NOW_DATE);
//return renderMilestoneLines(this, LIMIT_DATE);
})
.declareJob("renderProjectDocumentInfo", function () {
......@@ -412,10 +412,9 @@
})
.declareJob("renderOutdatedDocumentInfo", function () {
//XXX For testing. REMOVE and use LIMIT_DATE
var limit_date = new Date().toISOString()
.substring(0, new Date().toISOString().length - 5).replace("T", " ");
return renderProjectDocumentLines(this, limit_date);
//XXX For testing. use LIMIT_DATE
return renderProjectDocumentLines(this, NOW_DATE);
//return renderProjectDocumentLines(this, LIMIT_DATE);
})
.declareJob("renderTestResultInfo", function (project_list) {
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>982.18442.49648.44697</string> </value>
<value> <string>982.19478.22632.45687</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1583255694.45</float>
<float>1583317845.73</float>
<string>UTC</string>
</tuple>
</state>
......
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