processwire-issues
processwire-issues copied to clipboard
Name format for children date issues
Short description of the issue
There are lots of issues when parsing the date format, but this one example should get you going.
Y/F results correctly in "2021-january"
But F/Ygives me "january-2032" and if I add another page, this time I get "january-2033" so that last digit is incrementing on its own.
Expected behavior
I should be able to use the F/Y format. Actually, I'd like to be able to have more flexibility, eg F, Y etc.
Note that I have worked around this by hooking to update the title and name to what I actually want, but I expect someone else will come up against this at some point.
But F/Y gives me "january-2032"
This date format works as expected for me.

if I add another page, this time I get "january-2033" so that last digit is incrementing on its own.
I can confirm that. It's not specific to "name format for children" but is a manifestation of this issue: https://github.com/processwire/processwire-issues/issues/1192
Thank @Toutouwai - I'd still like to leave this issue open though because it would be nice to have more flexibility in the name.