noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/01: Bug : date format malfunctionned


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/01: Bug : date format malfunctionned
Date: Mon, 15 Nov 2021 12:58:17 -0500 (EST)

sparkyx pushed a commit to tag rel9016
in repository noalyss.

commit 3ed1e5cc2e27c7e6bd9296a9d5aa9245d18400bc
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Nov 15 18:57:22 2021 +0100

    Bug : date format malfunctionned
---
 html/js/noalyss_script.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/html/js/noalyss_script.js b/html/js/noalyss_script.js
index e030b6e..b4a2c09 100644
--- a/html/js/noalyss_script.js
+++ b/html/js/noalyss_script.js
@@ -348,7 +348,7 @@ function format_date(p_object)
     p_object.value=p_object.value.replace(/\.\./g,'.');
     var tmp_value = p_object.value;
     a_split=tmp_value.split('.');
-    if (a_split[2] && a_split[2].match(/[0-9]{2}/)) {
+    if (a_split[2] && a_split[2].match(/[0-9]{2}/) && a_split[2].length==2) {
         p_object.value=a_split[0]+"."+a_split[1]+"."+"20"+a_split[2];
     }
 }
@@ -4106,4 +4106,4 @@ function reconnect(){
             div.innerHTML=req.responseText;
         }
     });
-}
\ No newline at end of file
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]