Log In  


Cart #calendarwidget-2 | 2025-03-09 | Embed ▽ | License: CC4-BY-NC-SA
3

A simple calendar widget. Install to tooltray with drag-and-drop.

Displays the current month's calendar, and highlights the current day.

Click the block (top left) to toggle the window's transparency. (When started on the tooltray, it will automatically be transparent)

The date is calculated in local time by default. Switch to UTC by clicking the house (local) indicator.

Using my DateToUnix function: https://www.lexaloffle.com/bbs/?tid=146596 (Hey, I finally found a use for it!)

Changelog

v1.0.1 (2025-03-01):

  • Fix text centering

v1.0.2 (2025-03-09):

  • Fixed day of week being wrong after daylight savings starts
3


Hmm, in the web player, the date is wrong. It says march 1 is a Tuesday(?), but it displays correctly in actual Picotron.

I'm using date("%w") to figure out the position to draw the first day. According to PIL 22.1 - Date and Time, "%w" is supposed to return 0 to 6, representing Sunday (0) to Saturday (6), but it seems in the web player it returns 2 for Saturday?


Weird - I guess bug report time?


Hey! I'm working on a theme using your amazing calendar and wanted to ask for your permission first. I’ll be sure to give you full credit, and the theme will be completely free for everyone to use. If you're okay with it, please let me know! If not, no worries at all - I completely understand!


@Ponticum Sure, go right ahead!


@arnaught Thank you so much!


hello! this definitely needs a setting to pick the day that starts the week :)



[Please log in to post a comment]