Thanks Birthe!  This is helpful.  I put the following text 
in $:/core/ui/ViewTemplate/subtitle:

<$reveal type="nomatch" state=<<folded-state>> text="hide" tag="div" 
retain="yes" animate="yes">
<div class="tc-subtitle">
<$link to={{!!modifier}}> <$view field="modifier"/></$link>,
<$view field="created" format="date" template="DD MMM YYYY"/> -
<$view field="modified" format="date" template="DD MMM YYYY"/>
</div>
</$reveal>

This makes the timestamps look better in the subtitles of each tiddler. 
 But it still doesn't totally solve the problem.  For tiddlers with a 
"modified" field, the subtitle looks like this:

2017-05-01 - 2017-05-02

While tiddlers without a "modified" field look like this:

2017-05-01 -

Furthermore, tiddlers without a "modified" field don't show up in the 
"Recent" tab in the sidebar, which is weird.  I still think the best 
solution would be for all tabs lacking a "modified" field to have the 
"created" field automatically copied into the "modified" field at upgrade 
time.  This should be a simple enough task for a plugin.

-- Josh


On Wednesday, May 3, 2017 at 12:26:52 AM UTC-7, Josh Burton wrote:
>
> Hi all,
>
> I'm a long-time user, first-time writer.  And I recently upgraded my 
> TiddlyWiki from Classic to TW5 by using the online upgrade tool 
> <http://tiddlywiki.com/upgrade.html>.  Everything looked great - except 
> that some of my tiddlers mysteriously stopped displaying their timestamps.
>
> I did some research and I think I've figured out the root of the problem 
> (please someone correct me if I'm wrong):
>
> 1) In TW Classic, a tiddler gets its "created" field and timestamp at the 
> moment when it is first saved.  It does not get a "modified" field and 
> timestamp unless you subsequently change its text and save the changes.  In 
> the river view, a tiddler is displayed with its "modified" timestamp unless 
> it lacks a "modified" field, in which case it's displayed with the 
> "created" timestamp.
> 2) In TW5, a tiddler is first "created" at the moment when its text box 
> first appears.  It gets a "modified" field and timestamp when it is first 
> saved.
> 3) The online upgrade tool doesn't seem aware of the difference between 
> behavior 1) and 2).  It keeps track of each tiddler's "created" and 
> "modified" fields.  But when a tiddler lacks a "modified" field (because it 
> was created in Classic and never modified after its initial save), TW5 
> displays the tiddler with no timestamp in the normal river view.
>
> There's no real loss of information here, because the tiddlers store the 
> same data internally.  But the river display is misleading.  This doesn't 
> seem like intended behavior.
>
> This could be fixed with a tool/plugin that copies the "created" field 
> into the "modified" field for all tiddlers that lack a "modified" field.  I 
> know enough about regular expressions to create a quick hacky version of 
> this fix for my own use, but I don't know any JavaScript so I should 
> probably not be the one to contribute public code.  It would be awesome if 
> this fix were part of the automated upgrade process.
>
> Keep up the great work - I do love TiddlyWiki!
>
> -- Josh
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/14ec814e-2be1-4b5d-85f5-a5f8720dc766%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to