On Tuesday, October 20, 2020 at 9:45:41 AM UTC-7, Anthony wrote: > > Ah, I see what's going on there... great, thank you. > > Sorry... there's more... I've been playing with dates and noticed that if > a date prior to 2 December 1847 is entered in a field (say birth-date) then > it's displayed as the previous day... so 18471202 is fine but 18471201 > shows as 30th November 1847 (using <Sview with appropriate formatting). Is > there something in the TW handles dates? > > This is a TWCore issue. It's a mostly (but not entirely) a timezone thing related to the difference between "localtime" and "UTC" (Universal Time Coordinated)
Try entering this at http://TiddlyWiki.com: <$text text={{!!birth-date}}/><br> LOCAL TIME: <$view field="birth-date" format="date" template="MMM DDth YYYY 0hh:0mm:0ss" /><br> UTC: <$view field="birth-date" format="date" template="[UTC]MMM DDth YYYY 0hh:0mm:0ss" /> where the "birth-date" field contains "20201020". For example, I am in California, which is currently timezone UTC-7 (i.e., 7 hours behind UTC). The LOCAL TIME result will be: "October 19th 2020 17:00:00" but the UTC result will be: "October 20th 2020 00:00:00" HOWEVER, there *is* something odd going on for any date earlier than 18831119... Set birth-date to "18831119"... The LOCAL TIME result will be "November 18th 1883 16:00:00" but the UTC result will be "November 19th 1883 00:00:00" Still correct. BUT.. Set birth-date to "18831118"... The LOCAL TIME result will "November 17th 1883 16:07:02" but the UTC result will be "November 17th 1883 23:59:02" There's some kind of weirdness happening with the time portion of the formatting! Note that this is happening on http://TiddlyWiki.com, so it a TWCore issue unrelated to any TiddlyTools/Time code. I think we need to get Jeremy involved to figure this out. -e he UTC result will be "November 17th 1883 23:59:02" -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/18f80851-aaf5-4a97-a750-4bd4dda9b1d1o%40googlegroups.com.

