1
0
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:
Théophile Desmedt 2025-02-12 23:24:26 +01:00 committed by GitHub
parent 3d13c61c70
commit 5e65721420
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
};
})();