From cd8ab13b55eec0550ed1812cc742392d5310d542 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 18 Nov 2019 13:22:10 +0000 Subject: [PATCH] Fix bug with millisecond 0XXX date format --- core/modules/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index 316797337..ac9f273e1 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -280,7 +280,7 @@ exports.formatDateString = function(date,template) { return $tw.utils.pad(date.getSeconds()); }], [/^0XXX/, function() { - return $tw.utils.pad(date.getMilliseconds()); + return $tw.utils.pad(date.getMilliseconds(),4); }], [/^0DD/, function() { return $tw.utils.pad(date.getDate());