1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-06 18:56:56 +00:00

Fix: Ensure now macro format is always a string to prevent Uncaught TypeError

This commit is contained in:
Théophile Desmedt 2025-02-12 23:15:47 +01:00 committed by GitHub
parent d4bc3fcd99
commit 3d13c61c70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ exports.params = [
Run the macro
*/
exports.run = function(format) {
return $tw.utils.formatDateString(new Date(),format || "0hh:0mm, DDth MMM YYYY");
return String($tw.utils.formatDateString(new Date(),format || "0hh:0mm, DDth MMM YYYY"));
};
})();