pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 265 forks source link

Date: Year only is not supported (anymore) by datepicker #5557

Open JoryHogeveen opened 4 years ago

JoryHogeveen commented 4 years ago

Describe the bug https://wordpress.org/support/topic/year-is-now-only-2025-field-typedate/

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label Type: Bug to this issue, with a confidence of 0.92. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

JoryHogeveen commented 4 years ago

I’ve did some more digging on this topic. A year (or month/day) ONLY field is not exactly a "date" (that is why jQuery and HTML5 datepickers doesn’t support it).

For months and days we have a relationship type available. But for years this is simply a 4 digit numeric field OR a selectbox. I propose we deprecate the year only option for date fields.

@sc0ttkclark Any thoughts?

sc0ttkclark commented 4 years ago

It sounds like we should offer this 'year-only' option as a map to a relationship field (for years in a range) or a number field (for freeform input).

JoryHogeveen commented 3 years ago

Yeah that might be best. Maybe through an upgrade script?