Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21e23c4bac814c2

Jump to content

Module talk:Calendar widget

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Calendar widget/doc)
Latest comment: 2 years ago by JPxG in topic Bug?

Bug?

[edit]

Calling this with the iso=yes shifts the display of the dates in the calendar, but it doesn't shift the ordering of the header cells! This means it just generates an inaccurate calendar!

See, look:


July 2026
SuMoTuWeThFrSa
   1234
567891011
12131415161718
19202122232425
262728293031 
July 2026
MoTuWeThFrSaSu
  12345
6789101112
13141516171819
20212223242526
2728293031  

February 2024 began on Thursday, but if you invoke this module with "ISO display", it just moves everything to the left by one day (good) and says that the first was a Wednesday (bad). jp×g🗯️ 22:43, 13 February 2024 (UTC)Reply

I had forgotten that this module exists. I was going to suggest that it should be deleted but, it is actually being used. Color me surprised.
The week-day header is correct when |iso_wk=yes:
July 2026
WkMoTuWeThFrSaSu
27  12345
286789101112
2913141516171819
3020212223242526
312728293031  
I'll look into fixing this.
Trappist the monk (talk) 23:58, 13 February 2024 (UTC)Reply
One can only assume you looked at it quite intimidatingly, because the bug now looks to be gone - brilliant work, I had assumed there would be nothing here but tumbleweeds :^) jp×g🗯️ 05:21, 14 February 2024 (UTC)Reply