Amreus,

In tiddlywiki, which can be opened by users in any timezone, it makes use 
of local time zone settings. As a result you need to learn to take account 
of UTC, I live at UTC +10 and Summertime +11 so I feel it.

*I have not retested these following statements*

   - if you generate a date with the now macro and other methods using the 
   format "[UTC] rest of format" it will produce a date time stamp set at 
   UTC/Greenwich mean time not the local time.
   - When displaying dates using UTC makes says it is a UTC and display 
   with the local time zone added

In short tiddlywiki has support for international times zones, but you need 
to understand it to use it in some cases.

Regards
Tones

On Wednesday, 16 September 2020 07:05:56 UTC+10, amreus wrote:
>
> While trying to understand why dates are handled as they are in TIddyWiki, 
> I found out it is not TiddlyWiki but Javascript that is the problem.
>
> View this thread 
> <https://stackoverflow.com/questions/7556591/is-the-javascript-date-object-always-one-day-off>
>  
> for some craziness (https://stackoverflow.com/a/31732581)
>
> On Saturday, September 12, 2020 at 11:18:20 PM UTC-4 TW Tones wrote:
>
>> Re parsing an input;
>>
>> There is a facility in the current pre release keyboard-driven-input 
>> Macro <https://tiddlywiki.com/prerelease/#keyboard-driven-input%20Macro>
>>
>> This allows actions to be executed from an input field, say with enter. 
>> This may provide the opportunity to do post entry processing. Effectively 
>> allowing you to make more sophisticated parsing take place on a per input 
>> basis.
>>
>> Thus you could pass the value to other functions, if available for the 
>> result.
>>
>> Regards
>> Tony
>>
>>
>>
>> On Sunday, 13 September 2020 01:45:25 UTC+10, amreus wrote:
>>>
>>>
>>> Ruby has this great library called Chronic that parses strings into Ruby 
>>> Date objects. It handles date strings that are human friendly as well as in 
>>> rigid formats.
>>>
>>> You can see some usage examples here: https://github.com/mojombo/chronic
>>>
>>> Has anyone already made such a parser for TiddyWiki5? Does anyone know 
>>> if a similar library exists for Javascript which could be used?
>>>
>>> Why?  I have a textbox for rapid list item entry.  Instead of picking a 
>>> due-date for example, I just want to include the due-date as part of the 
>>> text and have a macro parse it out from the title and add it as a date 
>>> field. An example entry in my textbox might look like this:
>>>
>>> Schedule a fire system test due:"oct 1 8am"
>>>
>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b2f6f4a0-ca3e-4454-8236-f54affec6343o%40googlegroups.com.

Reply via email to