canonical / canonical/multipass

[snap] Snapshot timestamp format doesn't honor user's prefered locale when in a snap

Open
#3,302 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
9.2k
Forks
828
Avg merge
3d 1h
Merged PRs (30d)
44

Description

When running locally, the locale is properly used when formatting a snapshot's timestamp:

```
$ echo $LC_TIME
pt_PT.UTF-8
$ multipass info alive-chamois.snapshot2 | grep Created
Created: ter 14 nov 2023 16:04:17 WET
```

This is not the case when running in a snap

```
$ echo $LC_TIME
pt_PT.UTF-8
$ multipass info primary.snapshot1 | grep Created
Created: Tue Nov 14 14:35:27 2023 WET
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the difference between local and snap execution with LC_TIME=pt_PT.UTF-8 using the documented multipass info commands. Trace how the snap invocation formats the snapshot Created timestamp, then verify that the output honors the user's locale while preserving the existing timestamp information.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
cli, internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.