Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calendar@cinnamon.org if set to show seconds only in tooltip, the second doesn't tick properly #12140

Open
billyswong opened this issue Mar 30, 2024 · 1 comment
Labels

Comments

@billyswong
Copy link

billyswong commented Mar 30, 2024

Distribution

Mint 21.3 Cinnamon

Package version

cinnamon 6.0.4

Graphics hardware in use

No response

Frequency

Always

Bug description

Currently, the panel clock ticks per second if and only if the "date format" is set to contain %S in custom format. The "date format for tooltip" is ignored.

Thus if one want to hide second in panel and show it only within tooltip, the tooltip can't show a correct second.

The one who found this bug: https://forums.linuxmint.com/viewtopic.php?t=416598

Steps to reproduce

Right click the panel clock > configure > toggle on "use a custom date format" > in "date format for tooltip", put "%A, %e %B %Y, %H:%M:%S".

Then move the mouse to the panel clock and see the tooltip misreporting the second.

Expected behavior

The clock shall update itself per second if any one of the two custom date formats includes second.

Additional information

I tried to fix this bug myself. The fix seems to work but I am not sure if it is quality enough for merging. Take it as a proof of concept.
applet.js.txt

p.s. Github disallows me to upload the file with its original name as-is, thus the additional .txt

@billyswong billyswong added the BUG label Mar 30, 2024
@TClockBroughtMeHere
Copy link

Ditto, just tried to enable this in the clock tooltip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants