New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISO date in filename template is yesterdays date #736
Comments
|
The ISO date is the one returned by this function: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString. The timezone is always zero UTC offset. Why don't you use |
|
I just prefer YYYY-MM-DD as ordering the created folder/files by filename will yield a correct order by date, but mostly it's an aesthetic thing. Happy for you to close if you don't have plans to add any more template options. I might see how it works, perhaps it's pretty trivial to add some more and you can merge if you like them. Just comparing the look of these: In some similar projects the developer provides a way for the user to specify their own date string with format specifiers of their choosing etc. I believe this is where I saw it: |
|
What about |
|
Oh I didn't realize I could do that. Very flexible! Just tested it out and that's perfect. Closing my dumb query now :) |
|
Glad to hear it fulfill your needs :) |

Describe the bug
I'm using this template for filename: {year-locale}/{date-iso}/{page-title}.html
However, the folder name generated by date-iso is (@ 10 am my time) for the previous day, not today. E.g. today is 2021-08-04 but the folder used/generated is 2021-08-03
Environment
Additional context
Tried restarting Firefox as I wondered if the date is determined at init. No luck.
Love the plugin and plan to use it all the time, superb.
The text was updated successfully, but these errors were encountered: