Bug #15139
closedDate fields: default is tomorrow instead of today.
0%
Description
Steps to reproduce:
1. Have an extension with date fields (without time) in the back end, e.g. the attendance records in the "seminars" extension.
2. Check the checkmark next to a date field.
Expected results:
Today's date is inserted.
Actual result:
Tomorrow's date is inserted as default.
(issue imported from #M1703)
Files
Updated by Sebastian Kurfuerst about 19 years ago
If you want the current date inserted, just type "d" (without the quotes) in this field. To me, the "current date + 1" makes sense under some circumstances, for example for setting the enddate of the page. There, a date of today would be senseless. It all depends on where the date is needed, and if you want to insert the current date, I suggest using d as described above.
Greets, Sebastian
Updated by Oliver Klee about 19 years ago
I entered this bug report not because it is not possible to get today's date but because of the underlying usability problem: The users of my Typo3 installation do this when they want to enter today's date:
1. They see that no date is entered.
2. They click on the checkbox; a date is entered
3. They expect that this is today's date. have a cursory look at the date field and see what they want to see instead of what is really there.
I agree that there may be cases where tomorrow's date may make sense as a default, but when a date is automatically inserted, I'd expect it to be the date of "now".
Updated by Sebastian Kurfuerst about 19 years ago
After rethinking about the matter I think you are right. Currently, I have no time for looking at this, but a patch is welcome :-)
Greets, Sebastian
Updated by Thomas Hempel about 19 years ago
Hi,
I've added a patch which disables this feature or bug or whatever you want to call it. ;-)
Greets,
Thomas
Updated by Oliver Klee about 19 years ago
Thomas, thanks for the patch. I've just attached a slightly cleaned-up version of your patch that also changes the variable name so that it actually reflects the new behavior.
Updated by Oliver Klee about 19 years ago
I've uploaded a new patch that fixes a misspelling ("MidNight" must spell "Midnight").
The patch is tested and fixes the bug.