tirtharajsinha / clocket

Clocket is a desklet built for cinnamon DE based on gnome3
GNU General Public License v3.0
3 stars 2 forks source link

24-hour clock & seconds display #1

Open Twilight0 opened 2 years ago

Twilight0 commented 2 years ago

I 'd like the capability to have the clock in 24-hour format and even seconds diplay. If possible add option to change.

pcolamar commented 2 years ago

Hi Twiligt0, I had the same problem. While your request gets implemented by tirtharajsinha you can quickly patch the code yourself Go to ~/.local/share/cinnamon/desklets/clocket@tirtha

Open the file desklet.js and search for the line :

this._time.set_text(this.clock.get_clock_for_format("%0l:%0M"));

change it in

this._time.set_text(this.clock.get_clock_for_format("%0H:%0M"));

save and restart cinnamon. enjoy

Twilight0 commented 2 years ago

@pcolamar That's exactly what I did. Thanks for the idea.