Project

General

Profile

Actions

Bug #15139

closed

Date fields: default is tomorrow instead of today.

Added by Oliver Klee over 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-10-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

class.t3lib_tceforms.php.bug1703.patch (717 Bytes) class.t3lib_tceforms.php.bug1703.patch Administrator Admin, 2005-11-03 12:34
patch.diff (531 Bytes) patch.diff Administrator Admin, 2005-11-05 12:14
patch2.diff (862 Bytes) patch2.diff Administrator Admin, 2005-11-06 13:07
Actions #1

Updated by Sebastian Kurfuerst over 18 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

Actions #2

Updated by Oliver Klee over 18 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".

Actions #3

Updated by Sebastian Kurfuerst over 18 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

Actions #4

Updated by Thomas Hempel over 18 years ago

Hi,
I've added a patch which disables this feature or bug or whatever you want to call it. ;-)

Greets,
Thomas

Actions #5

Updated by Oliver Klee over 18 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.

Actions #6

Updated by Oliver Klee over 18 years ago

I've uploaded a new patch that fixes a misspelling ("MidNight" must spell "Midnight").

The patch is tested and fixes the bug.

Actions #7

Updated by Sebastian Kurfuerst over 18 years ago

Fixed in CVS.

Actions

Also available in: Atom PDF