Monday, July 26, 2021

[jimhoblo] dhclient lease file times are in UTC

the files in /var/lib/NetworkManager/dhclient-*.lease give "renew" "rebind" "expire" dates and times of DHCP leases.  the time zone, unspecified in the file, is UTC.  (it is documented in man 5 dhcpd.leases).

this can be verified with "nmcli -f DHCP4 c show YourAccessPointName" which will give a Unix time for expiry.

an easy way to convert Unix time to UTC is

date -u --date="@1234567890"

No comments :