Tony
In your examples you use a litteral date, surely you need it to come from a field a value or something else. How do you plan to actualy use sameday in your tiddlers?
I have been doing a lot with dates of late.
Regards
Tony
Jim,In your examples you use a litteral date, surely you need it to come from a field a value or something else. How do you plan to actualy use sameday in your tiddlers?
The other way around I would think, all dates utc and when you view them the local timezone offset is applied. Including daylight.
This is nessasary for time zone shared wikis. I can say this since I live at +10
The view widget has the template parameter with the utc option and you can format the same full date code to the micro second. Perhaps using the view widget with or without utc before you feed it into your sameday filter in a variable, will solve this issue?
To me date field values are barly readable as they are so why not maintain them in utc and always filter and display them as local time.
Evans formula plugin and the rpn maths plugins provide a little more in the date, Maths and the pickaday plugin is good for date selection with a popup calendar.
Regards
Tony
Jim,The other way around I would think, all dates utc and when you view them the local timezone offset is applied. Including daylight.
This is nessasary for time zone shared wikis. I can say this since I live at +10
The view widget has the template parameter with the utc option and you can format the same full date code to the micro second. Perhaps using the view widget with or without utc before you feed it into your sameday filter in a variable, will solve this issue?
This is an experimental fix to the sameday filter. ABSOLUTELY make a backup if you try this, because javascript errors can be insidious.Drag and drop onto your tw (greenbar at top) and import. Save. Reload. Test.The real fix would probably affect two core tiddlers, but for convenience I put the changes just into one.
<$wikify name=new-date text="<View$ field="in-date" format="date" template="YYYY0MM0DDhh0mm0ss0XXX"/> >
<$list filter="[sameday:created<new-date>]">
</$list>
</$wikify>>