Page MenuHomeFreeBSD

bsdconfig: add datetime module for live system clock
ClosedPublic

Authored by dteske on Jul 27 2026, 10:23 PM.
Tags
None
Referenced Files
F170481179: D58487.id184122.diff
Sat, Sep 5, 12:53 AM
Unknown Object (File)
Fri, Sep 4, 9:29 AM
Unknown Object (File)
Fri, Sep 4, 12:51 AM
Unknown Object (File)
Thu, Sep 3, 10:40 PM
Unknown Object (File)
Thu, Sep 3, 2:56 PM
Unknown Object (File)
Thu, Sep 3, 2:55 PM
Unknown Object (File)
Thu, Sep 3, 7:24 AM
Unknown Object (File)
Wed, Sep 2, 7:12 PM
Subscribers

Details

Summary

Provide bsdconfig datetime (menu), date, and time to set the running
system clock via dialog(1)/bsddialog(1) --calendar and --timebox with
mustberoot. Unlike bsdinstall's time helper, this operates on the live
system rather than a CHROOT-staged install target, and calls
adjkerntz(8) after a successful change so the CMOS stays in sync.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Part of my work in releasing the window manager that I built for the touch-sensitive Framework Laptop 12. My window manager has a start bar complete with battery level and system date/time. I programmed it so that when you click on the clock in the start bar that it brings up this, bsdconfig datetime, so that the date and time can be set more conveniently. As mentioned elsewhere, you can't use the bsdinstall module for that purpose.

bcr added a subscriber: bcr.

OK for the doc/man page change.

This revision is now accepted and ready to land.Sat, Aug 15, 11:31 AM
In D58487#1350655, @bcr wrote:

OK for the doc/man page change.

Thank you!