Add optional fractions to a pattern in formatDateTimeValueForForm

This commit is contained in:
2023-06-19 19:00:20 -05:00
parent 50979a1ecc
commit 8b38cf8fa3

View File

@ -361,7 +361,7 @@ class ValueUtils
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
return (value + "T00:00"); return (value + "T00:00");
} }
else if (value.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?Z$/)) else if (value.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?Z$/))
{ {
/////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////
// If the passed in string has a Z on the end (e.g., in UTC) - make a Date object - the browser will // // If the passed in string has a Z on the end (e.g., in UTC) - make a Date object - the browser will //