Improving date and time for tiddler parsing an as dictionary tranformation.
This commit is contained in:
parent
d066d77a1c
commit
c5386a275f
@ -18,5 +18,5 @@ String >> asDateAndTimeForTiddler [
|
|||||||
13 to: 14 do: [ :i | date add: (self at: i) ].
|
13 to: 14 do: [ :i | date add: (self at: i) ].
|
||||||
date add: '.'.
|
date add: '.'.
|
||||||
15 to: 17 do: [ :i | date add: (self at: i) ].
|
15 to: 17 do: [ :i | date add: (self at: i) ].
|
||||||
^ (date joinUsing: '') asDateAndTime
|
^ ((date joinUsing: ''), '+00:00') asDateAndTime
|
||||||
]
|
]
|
||||||
|
@ -55,6 +55,7 @@ Tiddler >> asDictionary [
|
|||||||
at: 'modified' put: self modified;
|
at: 'modified' put: self modified;
|
||||||
at: 'bag' put: self bag;
|
at: 'bag' put: self bag;
|
||||||
at: 'revision' put: self revision;
|
at: 'revision' put: self revision;
|
||||||
|
at: 'caption' put: self caption;
|
||||||
yourself.
|
yourself.
|
||||||
self customFields ifNotEmpty: [
|
self customFields ifNotEmpty: [
|
||||||
self customFields keysAndValuesDo: [:k :v |
|
self customFields keysAndValuesDo: [:k :v |
|
||||||
|
Loading…
Reference in New Issue
Block a user