VMware Postgres must use Coordinated Universal Time (UTC) for log timestamps.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-256610SRG-APP-000374-DB-000322VCPG-70-000020SV-256610r887616_rule2023-06-151
Description
If time stamps are not consistently applied and there is no common time reference, it is difficult to perform forensic analysis. Time stamps generated by VMware Postgres must include date and time expressed in UTC, a modern continuation of Greenwich Mean Time (GMT).
ℹ️ Check
At the command prompt, run the following command: # /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW log_timezone;" Expected result: Etc/UTC If the output does not match the expected result, this is a finding.
✔️ Fix
At the command prompt, run the following commands: # /opt/vmware/vpostgres/current/bin/psql -U postgres -c "ALTER SYSTEM SET log_timezone TO 'Etc/UTC';" # /opt/vmware/vpostgres/current/bin/psql -U postgres -c "SELECT pg_reload_conf();"