Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

{created_day} & {created_day} Filename with 01 instead of 1 (DD instead of D and MM instead of M) #117

Closed
ministryofsillywalks opened this issue Dec 10, 2020 · 4 comments

Comments

@ministryofsillywalks
Copy link

I like having my files in a human readable fashion, that's why I have paperless naming my files:
{created_year}{created_month}{created_day}-{correspondent}-{document_type}-{title}
My expectation would be that 01 Dec 2020 would by 20201201 YYYYMMDD and not 2020121 YYYYMMD as this messes sorting in the explorer. Or in worst case 01. Jan. 2020 being 202011 YYYYMD
image
As you can see here a document from 2018 sorts higher than one from 2020.

@jonaswinkler
Copy link
Owner

jonaswinkler commented Dec 10, 2020

I see.

There's also {created} which uses the ISO format (YYYY-MM-DD).

For the time being, you can also do this:

{created_year}{created_month:02}{created_day:02} {title}

The :02 part tells paperless to use leading zeros and use at least two digits. However, I might change that so that paperless always adds leading zeros, which will render this format invalid, so keep an eye out on change logs.

jonaswinkler pushed a commit that referenced this issue Dec 14, 2020
@jonaswinkler
Copy link
Owner

Will be fixed in the next release. Please don't use the above mentioned workaround anymore.

@ministryofsillywalks
Copy link
Author

Using {created} at the moment.
That's still going to be supported?

@jonaswinkler
Copy link
Owner

Yes, always.

tribut pushed a commit to tribut/paperless-ng that referenced this issue Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants