mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Add ability to now macro to return same UTC string used in the modified and created fields.
This commit is contained in:
parent
e3544ff3c2
commit
7b6ad7db4a
@ -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");
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user