Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Moving dates when picking from popup calendar

    Hi,
    I have trouble that when picking a date from the popup calendar of a dateitem that the date displayed in the text field moves one day. It does not occur when I set the default display time zone offset to 0 (Time.setDefaultDisplayTimezone(0)).

    Checking the source code of the DateItem I see something strange in the pickerDataChanged method:
    Code:
            var type = this.getType(),
                useCustomTimezone = !isc.SimpleType.inheritsFrom("date") 
                                    || isc.SimpleType.inheritsFrom("datetime");
    shouldn't this be (note the new first parameter to inheritsFrom):
    Code:
            var type = this.getType(),
                useCustomTimezone = !isc.SimpleType.inheritsFrom(type, "date") 
                                    || isc.SimpleType.inheritsFrom(type, "datetime");
    gr. Martin

    #2
    This was fixed last week, you caught a regression that existed for about 4 days.

    Comment

    Working...
    X