Exportation and support for local timezones in Tiddler creation.
This commit is contained in:
parent
e5310ea267
commit
4e1e3caa36
@ -22,6 +22,12 @@ Class {
|
|||||||
#category : #'TiddlyWiki-Model'
|
#category : #'TiddlyWiki-Model'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{ #category : #'instance creation' }
|
||||||
|
Tiddler class >> nowLocal [
|
||||||
|
^ (ZTimestampFormat fromString: '200102031605067')
|
||||||
|
format: (ZTimestamp fromString: Time nowLocal asDateAndTime asString)
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Tiddler >> asDictionary [
|
Tiddler >> asDictionary [
|
||||||
^ Dictionary new
|
^ Dictionary new
|
||||||
@ -39,7 +45,7 @@ Tiddler >> asJson [
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Tiddler >> asJsonTempFile [
|
Tiddler >> asJsonTempFile [
|
||||||
MarkupFile exportAsFileOn: FileLocator temp / self title, '.json' containing:self asJson
|
^ MarkupFile exportAsFileOn: FileLocator temp / self title, 'json' containing:self asJson
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user