mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Fix bug with millisecond 0XXX date format
This commit is contained in:
parent
e4eaae14fa
commit
cd8ab13b55
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user