Exportation and support for local timezones in Tiddler creation.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-08-08 13:11:57 -05:00
parent e5310ea267
commit 4e1e3caa36

View File

@ -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
] ]