Skip to content

Commit

Permalink
Sostituito toISOString con utils.toISO8601 per compatibilità della ve…
Browse files Browse the repository at this point in the history
…rsione di Mozzila Rhino
  • Loading branch information
mspasiano committed Jan 21, 2025
1 parent 00d8e82 commit 15ef068
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ if (!competition) {
"FROM jconon_attachment:call_classification root " +
"JOIN jconon_protocollo:common AS p ON root.cmis:objectId = p.cmis:objectId " +
"WHERE IN_TREE(root, '" + competition.nodeRef + "') " +
"AND p.jconon_protocollo:data >= TIMESTAMP '" + mesePrecedente.toISOString() + "' " +
"AND p.jconon_protocollo:data < TIMESTAMP '" + meseCorrente.toISOString() + "'";
"AND p.jconon_protocollo:data >= TIMESTAMP '" + utils.toISO8601(mesePrecedente) + "' " +
"AND p.jconon_protocollo:data < TIMESTAMP '" + utils.toISO8601(meseCorrente) + "'";

var sort1 = { column: 'cm:modified', ascending: false };
var def = {
Expand Down Expand Up @@ -108,8 +108,8 @@ if (!competition) {
"SELECT * FROM jconon_call:folder root " +
"WHERE (" +
"root.cmis:objectTypeId = 'F:jconon_call_tind:folder_concorsi_pubblici' " + // <-- Filtro aggiuntivo
"AND root.jconon_call:data_inizio_invio_domande_index <= TIMESTAMP '" + meseCorrente.toISOString() + "' " +
"AND (root.jconon_call:data_fine_invio_domande_index >= TIMESTAMP '" + mesePrecedente.toISOString() + "' " +
"AND root.jconon_call:data_inizio_invio_domande_index <= TIMESTAMP '" + utils.toISO8601(meseCorrente) + "' " +
"AND (root.jconon_call:data_fine_invio_domande_index >= TIMESTAMP '" + utils.toISO8601(mesePrecedente) + "' " +
"OR root.jconon_call:data_fine_invio_domande_index IS NULL) " +
"AND root.jconon_call:has_macro_call = 'false' " +
"AND IN_TREE (root,'e04f8197-b455-4344-9d16-99ab6af83b76')" +
Expand Down

0 comments on commit 15ef068

Please sign in to comment.