modifying importtiddler to not change modification date

87 views
Skip to first unread message

harsha reddy

unread,
Mar 2, 2016, 12:52:15 AM3/2/16
to TiddlyWiki
Hello,
    What would be the simplest way to modify importtiddler so that modification date is preserved? From a previous thread, changing the modification date seems to be the intended behaviour. For my use case, where importing to a new wiki from older files, all the old dates are lost, and timeline collapses to a single date. So preserving the date seems more natural. A quick search found importvariables.js but couldn't locate the code for importtiddler.
Thanks,
Harsha.

harsha

unread,
Mar 2, 2016, 1:49:16 AM3/2/16
to TiddlyWiki
Never mind, I got around this problem using nodejs version and load option from file which preserves modification date.
Thanks.

Jeremy Ruston

unread,
Mar 2, 2016, 3:51:51 AM3/2/16
to tiddl...@googlegroups.com
> For my use case, where importing to a new wiki from older files, all the old dates are lost, and timeline collapses to a single date

Are you importing a TW5 HTML file by drag and drop into another TW5 HTML file in the browser?

The intended behaviour of TW5 on import is to preserve the modification date of incoming tiddlers. Nor does the import process assign a modification date to tiddlers that don’t have one.

I’d like to be able to reproduce the problem and understand what’s going on. Would you be in a position to share the files concerned? Either publically, or directly with me via email (jeremy (at) jermolene (dot) com).

Best wishes

Jeremy

harsha

unread,
Mar 8, 2016, 3:16:42 PM3/8/16
to TiddlyWiki
Sorry about the late reply.  


Also, I should have been more clear that this behaviour occurs in fresh nodejs version of TW5 and not in the regular import between versions. Importing between two regular files preserves the dates.

The behaviour of changing dates to imported date appears in nodejs (fresh install and importing from a regular tiddlywiki file).

The correct dates show up when importing. But after restarting the server, all the imported tiddlers show up in the current date in the 'recent' timeline. I wasn't sure if this was the intended behaviour.

The load from file command line option  works correctly, the dates are preserved. 

So, there isn't any problem getting the right dates even in the nodejs version, as long as the command line is used and not the import option from the sidebar.

Thanks for the response.
Reply all
Reply to author
Forward
0 new messages