How to modify the created field in the right way?

92 views
Skip to first unread message

yrosgi L

unread,
Jun 15, 2020, 11:30:00 PM6/15/20
to TiddlyWiki
I use node/tiddlywiki to serve the content. Recently I recover a tiddler by copy the content from git history and recreate the tiddler.
So the created day is different from the origin. I tried to manually modify the tiddler by using a text editor, but there is nothing change after I saved the tiddler text.

PS: the reason why I lost the tiddler is very strange. I found there was a tiddler duplicated with same content but different title with a draft prefix, so I decided to delete the draft, but the original tiddler was deleted at the same time. I think it is a bug.

Thanks.

TW Tones

unread,
Jun 16, 2020, 12:03:21 AM6/16/20
to TiddlyWiki
I don't modify tiddlers on disk, but I do know;

If you delete a first draft of shadow tiddler, it will revert to a shadow tiddler.

Regards
tony

Saq Imtiaz

unread,
Jun 16, 2020, 12:50:26 AM6/16/20
to TiddlyWiki
Shut down the node server, edit the created date in a text editor,and restart the server. Reload the wiki if it's already open.

Or, use the action-setfield widget via a button, to change the created field.

Eric Shulman

unread,
Jun 16, 2020, 1:25:07 AM6/16/20
to TiddlyWiki
On Monday, June 15, 2020 at 8:30:00 PM UTC-7, yrosgi L wrote:
I use node/tiddlywiki to serve the content. Recently I recover a tiddler by copy the content from git history and recreate the tiddler.
So the created day is different from the origin. I tried to manually modify the tiddler by using a text editor, but there is nothing change after I saved the tiddler text.

Here's a little trick for changing the "created" field directly from within the TiddlyWiki tiddler editor:

1) View the desired tiddler and invoke the editor (pencil icon)
2) In the "Add new field" field name input, type "created"
3) In the corresponding field value input, enter a date/time value using YYYY0MM0DD0hh0mm0ss0XXX format (e.g., 20200615102030500 = June 15, 2020 at 10:20:30.500am)
4) Press the done button (checkmark icon) to apply the change

Note that this also works for other "hidden" system fields ("creator" and "modifier").

It also works for "modified", but only if you first turn off the automatic timestamp feature (see Sidebar > Tools > Timestamps)

Also note that the timestamp field value is in UDT, so you will need to account for the timezone offset of your location.

enjoy,
-e

yrosgi L

unread,
Jun 16, 2020, 4:37:08 AM6/16/20
to TiddlyWiki
Thank you all


Reply all
Reply to author
Forward
0 new messages