Fix inconsistent volume createdAt JSON encoding (#1556)

- Closes #1533 
- This PR aligns `volume list --format json` date
  encoding with volume inspect by using ISO-8601
  instead of the default numeric reference-date
  format.
This commit is contained in:
Raj
2026-05-15 00:59:28 -07:00
committed by GitHub
parent 615b5a6ffe
commit 16f5fc705f
2 changed files with 5 additions and 2 deletions
@@ -43,7 +43,8 @@ extension Application.VolumeCommand {
let volumes = try await ClientVolume.list()
if format == .json {
try Output.emit(Output.renderJSON(volumes))
let options = JSONOptions(dateEncodingStrategy: .iso8601)
try Output.emit(Output.renderJSON(volumes, options: options))
return
}