Skip to main content

Search and Top Navigation

#7267 closed bug (invalid)

Opened April 18, 2011 12:45PM UTC

Closed October 26, 2012 08:56AM UTC

DatePicker in maxDate use 23;59:59:999

Reported by: aruizna Owned by: aruizna
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8
Keywords: Cc:
Blocked by: Blocking:
Description

In the internal _getMinMaxDate I performed this function, this detect if is a maxDate what you want and the maxDate must not be an instance of Date, in that case the function Set time of the end of the Date, it is useful when want to set the Time of the DATE.


Code:

/* Determine the current maximum date - ensure no time components are set. */
_getMinMaxDate: function(inst, minMax) {
            var date = this._determineDate(inst, this._get(inst, minMax + 'Date'), null); ;
            /*ARN, Cuando el maxDate no es un objeto fecha le seteo para que contemple todo el dia  - 23:59:59:999*/
            if (minMax == "max" && !(this._get(inst, minMax + 'Date') instanceof Date)) {
                date.setHours(23);
                date.setMinutes(59);
                date.setSeconds(59);
                date.setMilliseconds(999);
            }
            return date;
        },
Attachments (0)
Change History (3)

Changed October 11, 2012 02:43PM UTC by scottgonzalez comment:1

milestone: 1.9.01.11.0

Changed October 11, 2012 05:51PM UTC by scottgonzalez comment:2

owner: → aruizna
status: newpending

I don't really understand what you're trying to accomplish here, but datepicker has no time support at all. Can you elaborate on what bug exists or what feature you're trying to add?

Changed October 26, 2012 08:56AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!