mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-12 13:53:13 +00:00
second attempt to fix the type issue
This commit is contained in:
parent
3d13c61c70
commit
5e65721420
@ -26,7 +26,10 @@ exports.params = [
|
||||
Run the macro
|
||||
*/
|
||||
exports.run = function(format) {
|
||||
return String($tw.utils.formatDateString(new Date(),format || "0hh:0mm, DDth MMM YYYY"));
|
||||
let formatString = format || "0hh:0mm, DDth MMM YYYY";
|
||||
formatString = String(formatString);
|
||||
|
||||
return $tw.utils.formatDateString(new Date(), formatString);
|
||||
};
|
||||
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user