Results 1 to 10 of 10

Thread: [MODERN] duplicated days in datepanel

    You found a bug! We've classified it as EXTJS-27626 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    902

    Default [MODERN] duplicated days in datepanel

    Duplicated days on calendar panel

    Ext JS 6.6.0


    Double february 17th, sometimes November 4th, sometimes October 28th. scroll left and right to see the issue.

    https://fiddle.sencha.com/#view/editor&fiddle/2mng


    http://examples.sencha.com/extjs/6.6...panel-date-adv
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

  2. #2
    Sencha Premium User
    Join Date
    Feb 2012
    Posts
    82

    Default

    I've just run into this one myself.

    See also this bug report which also mentions October 28th.

    Coincidentally, daylight saving time ends (here in the UK) on October 28th. Some kind of bug in core date handling where offsets are involved?

  3. #3
    Sencha Premium User
    Join Date
    Feb 2012
    Posts
    82

    Default

    Further info confirming my suspicion. I changed my computer time zone to UTC (from "London"). (Running Windows 10).

    Refreshing the example now sees the calendar fixed.

  4. #4
    Sencha Premium User
    Join Date
    Feb 2012
    Posts
    82

    Default

    This appears to be a regression introduced in 6.6.0.

    The example for 6.5.3 does not have this bug.

  5. #5
    Sencha Premium User
    Join Date
    Feb 2012
    Posts
    82

    Default

    Ironically, the release notes for 6.6.0 say for Calendar: "EXTJS-24466 All day events the week after the beginning or end of DST span multiple days".

    Anyway, for anyone who cares, the changed code that is causing the regression in the date picker is around line 1694 of ext/packages/core/src/lang/Date.js

  6. #6
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    902

    Default

    I have opened a support ticket and JIRA number for this bug is now EXTJS-27626. I`m gonna ask sencha to link the issue number to this thread.
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

  7. #7
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    99

    Default

    We just changed from Daylight to Standard in the US and it fails here too, even in KitchenSink for Ext JS 6.6.0. The problem seems to be that the cellMap is not handling a month with both DST and standard time. So it blows up in Ext.panel.DateView getCellByDate.

  8. #8
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

    Something like this should fix it:

    https://fiddle.sencha.com/#view/editor&fiddle/2mo9
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  9. #9
    Sencha Premium User
    Join Date
    May 2015
    Posts
    168

    Default

    Quote Originally Posted by evant View Post
    Something like this should fix it:

    https://fiddle.sencha.com/#view/editor&fiddle/2mo9
    User just reported this, found your fix. Hero as ever. Thanks

  10. #10
    Sencha Premium User
    Join Date
    May 2015
    Posts
    168

    Default

    Now the clocks have changed in the UK it seems to have broken the calendar displaying at all in 6.6.0

    ext-modern-all-debug.js:119939 Uncaught TypeError: Cannot read property 'addCls' of null
    at constructor.initialize (ext-modern-all-debug.js:119939)
    at constructor (ext-modern-all-debug.js:38163)
    at constructor.callParent (ext-modern-all-debug.js:8681)
    at constructor (ext-modern-all-debug.js:59392)
    at new Ext.panel.Date (ext-modern-all-debug.js:9198)
    at eval (eval at getInstantiator (ext-modern-all-debug.js:10311), <anonymous>:3:8)
    at Object.create (ext-modern-all-debug.js:10497)
    at constructor.applyPicker (ext-modern-all-debug.js:115921)
    at constructor.callParent (ext-modern-all-debug.js:8681)
    at constructor.applyPicker (ext-modern-all-debug.js:121013)

Similar Threads

  1. Replies: 4
    Last Post: 25 May 2018, 1:01 AM
  2. Replies: 1
    Last Post: 15 Aug 2017, 11:10 AM
  3. Replies: 1
    Last Post: 25 May 2017, 3:50 PM
  4. Ext 6.5 datepanel bugs when not displaying header and/or footer
    By baruch.velez in forum Ext JS 6.x Bugs
    Replies: 0
    Last Post: 18 May 2017, 5:57 AM
  5. Replies: 1
    Last Post: 8 Mar 2017, 6:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •