The ability to switch between a 12 and 24 hour clock is back. Many of you requested it after Mint 16 was out. I was the one who thought it needed to go, and that translations could take care of that… and I was wrong :)
New options to show the date or the seconds were also added, and the old C datetime module was resurrected with policykit support to set the time, date, timezone and to choose whether or not you want to use NTP.
Some technical details:
- The options “Use 24h clock” and “Display the date” also apply to the screensaver. By design we didn’t want the screensaver to refresh its information every seconds so the option “Display seconds” only applies to the calendar applet.
- The 24h clock setting in MDM was also fixed.
- The clock is now managed by the cinnamon-desktop library so it’s easily accessible to any program, applet, or desklet in Cinnamon.
If you’re developing a Cinnamon spice and you want to show the date in the right format (as set by the user via Cinnamon Settings), it’s very easy:
const CinnamonDesktop = imports.gi.CinnamonDesktop;
let clock = new CinnamonDesktop.WallClock();
let datetime_string = clock.get_clock().capitalize();