Skip to content

auto detect timezone from log time tag #1681

@tuttipazzo

Description

@tuttipazzo

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I spend more time fixing time tags then actual log analysis. For example,
I have 2 logs with the TZ already in the time tag:

2026-04-25T00:00:01.300951+0000

And yet lnav wants to convert it to my laptop's TZ.

Describe the solution you'd like
A clear and concise description of what you want to happen.
I get logs from customers who aren't in my TZ and even if they are not in my TZ they are world wide customer who standardize on UTC. Use the TZ from the time tag.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
something easier than having to play with the time offset.

Additional context
Add any other context or screenshots about the feature request here.
Yes. I also have a log file with these time tags
Apr 25 05:31:19
along with the one above. I would rather have lnav just assume if I provided logs with higher precision + TZ, take the TZ & year or at a minimum ask after initial screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions