Announcement

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

    DateUtil.setAdjustForDST(false) is breaking DataTime grid editor

    When I try to disable DST by invoking DateUtil.setAdjustForDST(false) DataTime editor in grid is behaving incorrectly.
    When I'm editing date that is not in the DST period (like December 9) it is working correctly.
    When I try to edit date from DST period (like May 9) grid editor subtracts hours and I'm unable to select correct time.

    This is my global configuration
    Code:
    DateUtil.setShortDateDisplayFormatter(DateUtil.TOEUROPEANSHORTDATE);
    DateUtil.setNormalDateDisplayFormatter(DateUtil.TOEUROPEANSHORTDATE);
    DateUtil.setNormalTimeDisplayFormatter(DateUtil.TOEUROPEANSHORTDATETIME);
    DateUtil.setShortDatetimeDisplayFormatter(DateUtil.TOEUROPEANSHORTDATETIME);
    DateUtil.setInputFormat(AppConstants.DATE_INPUT_FORMAT);
    DateUtil.setAdjustForDST(false);
    Data Source Field settings:

    Code:
    field = new DataSourceDateTimeField("FieldName");
    field.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATETIME);
    I'm missing some settings or this is a bug ? How can I correctly configure DateTime editor in grid ?

    #2
    We're not seeing an issue with setAdjustForDST(false), so we'll need a minimal, ready-to-run test case that reproduces the problem.

    Also, you haven't indicated what product or version you're using - please post the full version (see FAQ). If you are not already using the latest patched build (see smartclient.com/builds), retest after installing the latest (before posting a test case).

    Comment

    Working...
    X