Hello
Seems that TW does not understand javascript dates. Instead it sets the
creation and modified date to NaNaN. I did not noticed this behavior
before, but seems to happen in multiple browsers. Was this happening before?
This is an easy way to reproduce the problem:
Go to tiddlywiki.com, open the console and type the following
tid = $tw.wiki.getTiddler("HelloThere")
jsontid = JSON.stringify(tid.fields)
$tw.wiki.addTiddler(new $tw.Tiddler(JSON.parse(jsontid)))
If you open the info tab of HelloThere tiddler you can see that the created
and modified fields are filled with NaN. This is a problem if you want to
stringify a bunch of tiddlers. This does not happen if you use
getTiddlerAsJson, but I need to encode all the tiddlers at once while
holding them into an array. Putting tiddlers as JSON format into an array
and then stringify that array makes you double stringify on each tiddler,
which is a problem.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.