Zeroth day of the month in "It's about Time!" bug

I’m using the most excellent IAT plugin from @EricShulman, but from a while back, I’ve had this strange bug where calendars have a zero-day on months, which breaks the date alignment, the layout, etc. image

Does anyone else have this problem? Is there a known way to fix it?

Thanks, Gabriel

I have not seen this bug before. However, I have a few questions that might lead to a solution:

  • What version of the TiddlyWiki core are you using?
  • What browser/platform?
  • What version of TiddlyTools/Time/Calendar?
  • Can you upload your specific TiddlyWiki file (e.g., to https://TiddlyHost.com)? If it contains personal information, we can make arrangements for you to send it to me (via email attachment) so I can try to debug it directly.

Also, note that ALL TiddlyTools add-ons (including the “It’s About Time” add-ons) are now distributed directly from https://TiddlyTools.com, and the individual file (i.e., It's About Time! — TiddlyTools: "Small Tools for Big Ideas!" (tm)) is no longer being maintained (that file was last updated on Sept 28, 2022 and is using TWCore v5.2.2).

To get the latest revisions, please visit the main https://TiddlyTools.com URL.

Tip: files can be shared in private messages within discourse.

1 Like

Hi @EricShulman, thanks. I ran a git bisect and discovered that I broke the calendar when I installed https://groups.google.com/g/tiddlywiki/c/9hZTwQBuwe8/m/YlRPXrn0BQAJ (which is unfortunate because I like that streaks thing and have accumulated quite a lot of data for it). If I remove it again, the calendar works. I’ll play a bit on my side, No one has seen this bug because it’s my Frankenstein setup that causes it.

If you’re curious, I could prepare a version of my TW. But I’m shy to send you my raw instance because it’s huge and full of personal stuff. :stuck_out_tongue:

But otherwise, if I figure out something interesting from the debugging, I’ll post it here.

Very thankful for the rapid response. And thanks for the TiddlyTools link. I’m using the old version; seeing if I could upgrade is cool.

Also, thanks to @TW_Tones for the quick tip.

It turns out it was the embedded ebalster/formula plugin,

Probably this issue,

Luckily I upgraded to the latest on its GH repo, and the problem disappeared. (Phew!) And the streaks thing kept working. I’m a happy man!

Again, thanks for the support.

2 Likes

As you’ve noted, the problem was caused by EvanBalster’s FormulaPlugin. But it wasn’t caused the “off-by-one” date handling.

Rather, it was the existence of $:/plugins/ebalster/formula/filters/range.js which was overriding the TWCore range[] filter operator. The difference was that the range[] operator defined by FormulaPlugin was 0-based, while the range[] operator in the TWCore is 1-based.

Thus, in my Calendar’s showgrid() macro, where I use <$list filter="[range<dm>]" variable="dd"> to generate the dates in the monthly calendar grid display, Evan’s code added an extra “0” day to each month.

Fortunately, it appears that the most recent revision of FormulaPlugin (v0.2.5 - 3rd February 2018) no longer defines a custom range.js filter, so it doesn’t break usage of the TWCore range[] filter operator and thus allows proper functioning of TiddlyTools/Time/Calendar.

YAY!

-e

3 Likes