processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

Name format for children date issues

Open adrianbj opened this issue 4 years ago • 2 comments

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.

adrianbj avatar Jan 29 '21 15:01 adrianbj

But F/Y gives me "january-2032"

This date format works as expected for me.

2021-01-31_105058

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

Toutouwai avatar Jan 30 '21 21:01 Toutouwai

Thank @Toutouwai - I'd still like to leave this issue open though because it would be nice to have more flexibility in the name.

adrianbj avatar Jan 30 '21 22:01 adrianbj