]> git.proxmox.com Git - mirror_zfs.git/commit
Fix locale-specific time
authorMaxim Filimonov <part1zano@users.noreply.github.com>
Mon, 8 Apr 2024 22:37:41 +0000 (02:37 +0400)
committerGitHub <noreply@github.com>
Mon, 8 Apr 2024 22:37:41 +0000 (15:37 -0700)
commitf07389d3ad48ba21480dedcd79b75fe0a31e27bc
tree75968177e2342b87075c60a2d0945abaa79e8fc8
parentaa5445c28ba6199a15790459290bcd16cef4422d
Fix locale-specific time

In `zpool status -t`, scrub date/time is reported using the C locale,
while trim time is reported using the current one. This is inconsistent.
This patch fixes that.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Maxim Filimonov <che@bein.link>
Closes #15878
Closes #15879
cmd/zpool/zpool_main.c
lib/libzfs/libzfs_pool.c