linuxmint / linuxmint/cinnamon

Spacing incorrect in date/time on panel and in screensaver

Open
#12,552 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

BUG
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.