I’ve just posted an update to https://tiddlytools.com/#TiddlyTools%2FTime%2FEditDate to improve handling of the [UTC]
formatting prefix:
As before, if [UTC]
is omitted from the date/time formatting syntax, then the current local time will be used in the output (assuming you have included time formatting codes in the formatting syntax (e.g., 0hh0mm0ss0XXX
).
However, if you DO use the [UTC]
prefix, then any time formatting syntax will now use the current UTC time value (i.e., adjusting for your timezone offset). Note however, that this has no impact on the date portion of the output, which will always reflect the actual calendar date that you clicked upon, even if adjusting for UTC time offsets would otherwise cause the date to be shifted forward or back by a day.
Also, the includetime:yes
macro parameter is now obsolete. Instead, you can just use (or not use) time formatting syntax as desired, without needing to specify the includetime:yes
parameter. If you want to generate a complete 17-digit system timestamp without including the current time value, just include 9 hard-coded zeros to pad the time portion of the output format (e.g., YYYY0MM0DD000000000
). Alternatively, you can use 120000000
(“midday”) to pad the time portion which will generally avoid any issues with “date shifting” due to timezone offsets since all timezone offsets fall in the range from -12 to +12.
@TW_Tones: give the new code a try and let me know if it works better for your purposes.
enjoy,
-e