Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve time & date handling #546

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Improve time & date handling #546

merged 3 commits into from
Feb 28, 2024

Conversation

stgraber
Copy link
Member

This cleans up the rather messy time & date handling we've had in the CLI tool.

With this, we now properly use IsZero() to check whether a timestamp is null and should be ignored. We also now have a dateLayout global variable that can be used instead of the past patchwork of dozens of mostly similar date layouts. And lastly, all timestamps are now made to consistently use the local timezone information for rendering.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@brauner brauner merged commit 27cc7c7 into lxc:main Feb 28, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants