Skip to content

%k not recognized as valid format string #137

@GabrielRullan

Description

@GabrielRullan

File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python38\lib\site-packages\flogging\flogging.py", line 96, in format_datetime return dt.strftime("%Y-%m-%dT%k:%M:%S.%f000") + tzstr ValueError: Invalid format string
on running
$ LOG_STRUCTURED=True python scripts/data_loader.py -t csv > data_loading.log
changing %k to %h in line

return dt.strftime("%Y-%m-%dT%k:%M:%S.%f000") + tzstr

seems to do the trick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions