openscap icon indicating copy to clipboard operation
openscap copied to clipboard

start-time and end-time incorrect for non-UTC timezones

Open Lt1201 opened this issue 2 years ago • 0 comments

Description of Problem:

When evaluating any profile on a system with a timezone other than UTC. It seems that Day light savings is not taken into account. A system set for PDT is producing results with start-time and end-time with a PST offset.

OpenSCAP Version:

1.3.6

Operating System & Version:

Redhat enterprise linux 8

Steps to Reproduce:

  1. Using timedatectl set timezone to America/Los_Angeles
  2. eval profile of choice
  3. start-time and end-time will be off by one hour

Actual Results:

a results.xml file with start-time and end-time shifted one hour into the future

Expected Results:

a results.xml file with start-time and end-time at the correct time

Additional Information / Debugging Steps:

Lt1201 avatar May 15 '23 16:05 Lt1201