aceinnolab / Inkycal

Create awesome e-paper dashboards within minutes! Modularity? Check! Python3? Check? Works on Raspberry Pi Zero W? Check! Support for own modules? Check!
https://aceinnolab.github.io/Inkycal/
GNU General Public License v3.0
1.21k stars 128 forks source link

[BUG]: Agenda -> dynamic date-width #350

Open EinKantHolz opened 5 months ago

EinKantHolz commented 5 months ago

The agenda module shows a strange behavior while using this token in the settings file: "DD. MMMM YYYY" According the docs, the output must be something like 26. Juni 2024.

As you can see here, the last digit of the year is missing for Juni but not July: 20240626_065132

Now take a look with the modified format "DD. MMMM YYYYY" (5x Y): Juni shows 4 digits for the year but an additional "Y" for July. 20240625_213339

The config with removed calendar links:

{
            "position": 3,
            "name": "Agenda",
            "config": {
                "size": [
                    984,
                    554
                ],
                "ical_urls": null,
                "ical_files": null,
                "date_format": "DD. MMMM YYYY",
                "time_format": "HH:mm",
                "padding_x": 10,
                "padding_y": 0,
                "fontsize": 20,
                "language": "de"
            }
        }