Skip to content

First Week Of Year file-format - %Y-%V - shows correct week no (1), but wrong year (2024) for 2.1.2025 #451

Description

@triplem

Describe the bug
If a new file is created in the first week of a new year (well, at least for 2025), the file-fomat shows the correct week-no, which is no. 1, but still uses the "old" year, meaning the year on the beginning of the week.

To Reproduce
Create a weekly journal with the following settings:

(setq org-journal-file-type 'weekly)
(setq org-journal-start-on-weekday calendar-week-start-day)
(setq org-journal-file-format "%Y-%V.org")

This will create a new file with the name 2024-01.org on 2.1.2025.

Expected behavior
The first week of the year should be in the correct year, meaning 2025 in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions