Skip to content

[BUG] RichHandler ignores %z time zone format specifier #3877

@con-f-use

Description

@con-f-use

RichHandler sseems to ignore or cut off the %z timezone (or uses time objects where that info is not attached). I.e. with "log_time_format": "%Y-%m-%dT%H:%M:%S%z", for me, it prints:

2025-07-04T19:14:40 DEBUG    debug message                                                                                                                                           main.py:26
2025-07-04T19:14:41 INFO     info message                                                                                                                                            main.py:28

where it should be something like 2025-07-04T19:14:41+0200.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions