Host Reports Time zone seems to be adrift

Seeing the following on host reports for all hosts except the foreman server itself. I don’t use puppet, I use Ansible and ssh remote execution.

Time zones for all servers, including Foreman are set to EST, and all servers are syncing time off of our internal domain controller using NTP. Appears to be using GMT to calculate times for some reason. Everything everywhere is set to Browser Time or EST, both are -0500

Host times seem to be adrift!
Host reported time is 2022-01-10 14:05:19 -0500
Foreman report creation time is 2022-01-10 09:05:19 -0500
Which is an offset of about 5 hours

Expected outcome:
Times should match, there should be no warning.

Foreman and Proxy versions:
Version 3.1.0

Foreman and Proxy plugin versions:
Katello 4.3.0.rc4

Distribution and version:
CentOS 7

most likely we already have a fix for it[1], although I have no idea when it is going to land in a relase. Maybe @evgeni would know?

[1] - Specify the timezone in timestamps by evgeni · Pull Request #1333 · theforeman/foreman-ansible-modules · GitHub

1 Like

I’ll see that we do a release soon.

1 Like

Do we have any update on this ?

i am also getting same error while generating reports through ansible.

Below is my configuration
Foreman server : 3.1.2
Katello : 4.3
OS : CentOS7

This is part of ansible-collection-theforeman-foreman 3.1.0, which is available in Foreman 3.2 and later.

We didn’t backport it yet to older releases.