linuxmint / linuxmint/cinnamon
Spacing incorrect in date/time on panel and in screensaver
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 915
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 3
Description
Distribution
Linux Mint 22
Package version
6.2.9
Graphics hardware in use
No response
Frequency
Always
Bug description
When the date or hour is a single-digit number, extra space is placed where a number would go if it were a two-digit number. It's as if, instead of normal left-aligning the number, it's just adding an unneeded placeholder for the non-existent digit. This happens in the date/time applet (with "Custom date format" is used) and with the screensaver clock display (when "Use a custom date and time format" is used). In the panel, it shows itself as extra-wide spacing between the month and day, and before the time (see image: https://drive.google.com/file/d/1EtRFQjDGSj71TZnl6vcweUUHHDHlup6C/view?usp=sharing) instead of normal spacing. In the screensaver, it shows itself as the time being oddly off-set from the date (see image: https://drive.google.com/file/d/1hJe6IKsEoi3yyw1HP59JgEaWyPwaGUP5/view?usp=sharing).
Steps to reproduce
Turn on custom date/time settings in the date/time applet configuration or the screensaver configuration, and use a date/time format according to the provided instructions.
Expected behavior
There should not be that extra space or offset. Things should align normally.
Additional information
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the date/time applet and screensaver with custom date and time formats, using single-digit values. Then trace how each display formats and aligns those values; done means the panel and screensaver show normal spacing without reserving room for a missing digit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100