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

'updateinfo list' tests for dnf5 have to respect used time zone #1386

Open
glum23 opened this issue Sep 20, 2023 · 0 comments
Open

'updateinfo list' tests for dnf5 have to respect used time zone #1386

glum23 opened this issue Sep 20, 2023 · 0 comments

Comments

@glum23
Copy link
Contributor

glum23 commented Sep 20, 2023

The output of dnf5 updateinfo list depends on the currently set time zone, namely 'Issued' time of advisories is transformed from (supposed) universal time to the local time.

# timedatectl set-timezone America/Phoenix
# dnf5 updateinfo list
Name                   Type        Severity                                    Package              Issued
FEDORA-2023-3630891bed enhancement Moderate                 make-1:4.4.1-1.fc38.x86_64 2023-09-13 18:27:18
FEDORA-2023-6a22f9d0ca enhancement Low         cloud-utils-growpart-0.33-3.fc38.noarch 2023-09-16 18:25:42
# timedatectl set-timezone Europe/Prague
# dnf5 updateinfo list
Name                   Type        Severity                                    Package              Issued
FEDORA-2023-3630891bed enhancement Moderate                 make-1:4.4.1-1.fc38.x86_64 2023-09-14 03:27:18
FEDORA-2023-6a22f9d0ca enhancement Low         cloud-utils-growpart-0.33-3.fc38.noarch 2023-09-17 03:25:42

According to rpm-software-management/dnf5#900 dnf5 behavior is intentional. Upstream tests updateinfo.feature and security-upgrade.feature (both tagged as dnf5) have to be changed. They fail when the local time is different from the universal time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant