I'd like to have control over granularity of the various parts of the date/time field. For example, show only month and year in select list dropdowns.
The date field stored in the DB would, obviously, be a complete date, so devs would need to be able to specify defaults for the missing parts. In the month/year example, one might want to have "day" default to the first day of the month, or the last day of the month. Or if "year" was the omitted part, it could default to the current year.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | datetime_extras-add_granularity_options-2823764-4.patch | 2.56 KB | heddn |
| #4 | interdiff_3-4.txt | 323 bytes | heddn |
| #3 | interdiff_2-3.txt | 1.76 KB | heddn |
| #3 | datetime_extras-add_granularity_options-2823764-3.patch | 2.46 KB | heddn |
| #2 | datetime_extras-add_granularity_options-2823764-2.patch | 1.87 KB | heddn |
Comments
| Status | File | Size |
|---|---|---|
| new | datetime_extras-add_granularity_options-2823764-2.patch | 1.87 KB |
Just a stub, but something to start with. Right now it will just return the same thing as the normal select list widget.
| Status | File | Size |
|---|---|---|
| new | datetime_extras-add_granularity_options-2823764-3.patch | 2.46 KB |
| new | interdiff_2-3.txt | 1.76 KB |
OK, let's see what happens when we do this.
| Status | File | Size |
|---|---|---|
| new | interdiff_3-4.txt | 323 bytes |
| new | datetime_extras-add_granularity_options-2823764-4.patch | 2.56 KB |
composer packages aren't getting built. We might have to just commit this thing with the updates to the .info file.
If there's any bugs in this, we can fix them in follow-ups. I want to get composer functional.
Automatically closed - issue fixed for 2 weeks with no activity.
Comment #1
ExTexan created an issue. See original summary.