Skip to content

Setting Output Data Timezone with --tz but without %z  #2796

Open
@connor-dawson

Description

@connor-dawson

Hi,

I'm using goaccess 1.9.3. My web server logs use UTC as the timezone for the date and time, however the timezone is not specified in the log itself. For example, a line of my log looks like

2025-02-26 00:41:54 <app name> GET ...

I'd like my goaccess report to be given in Pacific time zone. For this I thought I could run goaccess with the following parameters

goaccess <log file> --time-format %H:%M:%S --date-format %Y-%m-%d --log-format "%d %t %^ %m %U %^ %^ %^ %h %u %^ %R %^ %s %^ %^ %b %^ %L" --tz=America/Los_Angeles -o tmp.csv

However when I run the command above, I'm still getting reports in UTC time.

For example, in the general panel I see the date the report was generated as 2/25/2025 17:08, which is the correct time I generated the report since I'm in Pacific time. But when I view the the other panels, the visitors panel shows 2/26/2025 and the visit_time panel shows 00, which is the corresponding time of the UTC logs, so they weren't converted.

Am I understanding the purpose of the --tz argument correctly and am I using it correctly? If not is there a way to achieve what I want?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions