Skip to content

Bug: %e in os.date has an extra space #1874

@rubenpuma

Description

@rubenpuma

The %e format specifier (day of month without 0 padding), gives a space in front of single digit days. It's kind of hard to notice, as on it's own, the rendering removes the extra spaces. But if you check the length, it gives 2 characters.
This was not the case as of yesterday. I know because I have daily journal pages that have %e in their names, and my instance is auto updated to docker tag latest daily.

Example:

${os.date('|%e', os.time({year=2026, month=1, day=1}))}
| 1
${string.len(os.date('%e', os.time({year=2026, month=1, day=1})))}
2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions