mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-02 10:58:01 +00:00
Add ability to now macro to return same UTC string used in the modified and created fields.
This commit is contained in:
@@ -26,6 +26,9 @@ exports.params = [
|
||||
Run the macro
|
||||
*/
|
||||
exports.run = function(format) {
|
||||
if(format == "UTC") {
|
||||
return $tw.utils.stringifyDate(new Date());
|
||||
} else
|
||||
return $tw.utils.formatDateString(new Date(),format || "0hh:0mm, DDth MMM YYYY");
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user