Page MenuHomeVyOS Platform

Ability to set 24-hour time format
Closed, ResolvedPublicFEATURE REQUEST

Description

Changed time-zone from default to:

set system time-zone Europe/Stockholm

However when doing "show date" the output is:

Mon Jul 10 06:36:50 PM CEST 2023

Expected output is:

Mon 10 jul 2023 18:36:50 CEST

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202306290317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

It should be configurable as an option but not by default.

Proposed syntax one of them

set system option time-format 12|24
set system option time-format 12-hour|24-hour
set system option time-format us|gb

Actually, it should configure:

sudo localectl set-locale LC_TIME="en_GB.UTF-8"
sudo localectl set-locale LC_TIME="en_US.UTF-8"

I would vote for:

set system option time-format 12h|24h

Where the default should be 24h if not set.

Viacheslav renamed this task from Locales doesnt update correctly when setting time-zone to Ability to set 24-hourtime format.Aug 1 2023, 8:59 AM
Viacheslav renamed this task from Ability to set 24-hourtime format to Ability to set 24-hour time format.
Viacheslav changed Issue type from Improvement (missing useful functionality) to Feature (new functionality).
Viacheslav changed the subtype of this task from "Bug" to "Feature Request".
Viacheslav claimed this task.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.