Improving date and time for tiddler parsing an as dictionary tranformation.

This commit is contained in:
ruidajo 2023-06-07 11:38:56 -05:00
parent d066d77a1c
commit c5386a275f
2 changed files with 2 additions and 1 deletions

View File

@ -18,5 +18,5 @@ String >> asDateAndTimeForTiddler [
13 to: 14 do: [ :i | date add: (self at: i) ].
date add: '.'.
15 to: 17 do: [ :i | date add: (self at: i) ].
^ (date joinUsing: '') asDateAndTime
^ ((date joinUsing: ''), '+00:00') asDateAndTime
]

View File

@ -55,6 +55,7 @@ Tiddler >> asDictionary [
at: 'modified' put: self modified;
at: 'bag' put: self bag;
at: 'revision' put: self revision;
at: 'caption' put: self caption;
yourself.
self customFields ifNotEmpty: [
self customFields keysAndValuesDo: [:k :v |