Mario,

Thanks this is very helpful. However it is a little disappointing to learn 
this.

Without "special" field modules registered at startup we should have an 
easy to use date field mechanism, after all we would expect this to be a 
common requirement for tiddlers, such as due, review or expiry dates etc..

Perhaps this already exists (as I am a long way to completing this), just 
that it is different to the Created and Modified date handling, that is ok, 
I just need to understand this, and you have being very helpful. I expect 
to find lots of information in your suggestions and Marks S.

Regards
Tony




On Friday, March 16, 2018 at 11:01:21 AM UTC+11, PMario wrote:
>
> On Thursday, March 15, 2018 at 11:40:34 PM UTC+1, TonyM wrote:
>>
>> The Info panel shows the GMT version of the time as -11 from my local 
>> expected.
>>
>
> ok
>  
>
>> I had assumed sticking compliet date values in a field made it a date 
>> field.
>>
>
> nope. There are "special" field modules registered at startup. 
>  
>
>> Is there a guide to handing custom date fields in tiddlywiki somewhere?
>>
>
> no. Every special field has a core module, defined at boot time. created, 
> modified, tags, list, color 
>
> Those functions are not generalized atm. .. They "kind of invisible" for 
> standard users. 
>
> It is possible to create a plugin, that adds special handling for other 
> fields. ... But I'm not 100% sure, if there are side effects. .. I didn't 
> use this mechanism yet. 
>  
>
> I am 90% the way through building a Tiddler Disposition tool that uses a 
>> set of date fields to make the life cycle of different tiddlers easy.
>>
>> I am not sure how to proceed in light of the discovery that I am not sure 
>> how to get fields treated as date fields, and to get edit-date fields to be 
>> stored as UTC and manage the time part of this select date.
>>
>
> I can point you to the source code, that's responsible. ... this is 
> deep-diving ... 
>
> code: 
> https://github.com/Jermolene/TiddlyWiki5/blob/master/boot/boot.js#L866
> Init: 
> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/startup/load-modules.js#L27
> usage: 
> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/tiddler.js#L34
> usage: 
> https://github.com/Jermolene/TiddlyWiki5/blob/master/boot/boot.js#L844
>
> If you do a global search for: .fieldModules  ..you'll get the info how 
> color field is used with edit widget. ... 
>
> I'm not sure if this helps. 
>
> -mario
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/725fb5b7-41c8-46e4-bbc4-782241024137%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to