diff --git a/apps/home/static/home/js/index.js b/apps/home/static/home/js/index.js index 224c283..748f61e 100644 --- a/apps/home/static/home/js/index.js +++ b/apps/home/static/home/js/index.js @@ -30,7 +30,7 @@ function genHexString(len=6) { // region DateTime function isISODateTimeString(value) { - const isoDatePattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+([+-]\d{2}:\d{2}|Z)$/; + const isoDatePattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?([+-]\d{2}:\d{2}|Z)$/; return typeof value === 'string' && isoDatePattern.test(value); }