Premium support for our pure JavaScript UI components


Post by henrikbackman »

Using https://bryntum.com/examples/grid/columntypes/ I change the language to Swedish and open the datepicker. I use the month and year dropdowns to navigate to August 2020. Now the monday displays as the 23e. Not as the 24e as is should be.

Skärmavbild 2020-08-28 kl. 16.17.13.png
Skärmavbild 2020-08-28 kl. 16.17.13.png (204.47 KiB) Viewed 1084 times

I should add, we have this problem in our application when trying to display todays date aswell.


Post by mats »

Failed to reproduce this, can you please retry using this link so we get a video recording of the steps?

https://bryntum.com/examples/grid/columntypes/?video=1


Post by henrikbackman »

Here is a video of the error: https://youtu.be/TziOTAwlikU


Post by henrikbackman »

We have this as a rather big issue in our environment at the moment. Could we use https://www.bryntum.com/docs/scheduler/#Core/widget/CalendarPanel instead? Can you please provide an example on how to use it!


Post by sergey.maltsev »

Hi!

This is already fixed in upcoming 4.0.0 version.
As a temporarily workarould try setting https://www.bryntum.com/docs/scheduler/#Core/widget/CalendarPanel#property-weekStartDay for CalendarPanel which is already used as DateField's editor. See this column config https://www.bryntum.com/docs/scheduler/#Grid/column/Column#config-editor

columns : [
    ...
        {
            text   : 'Date',
            field  : 'start',
            type   : 'date',
            format : 'MMMM Do YYYY',
            editor : {
                weekStartDay : 1
            }
        }

Post by henrikbackman »

We're not using the datepicker/datefield as a column. We append a widget where users can select a date range to display. I'm still having the same issue with the dates. Any ideas?


Post by sergey.maltsev »

Hi!

Did you just try this config above with https://bryntum.com/examples/grid/columntypes/ demo?


Post by henrikbackman »

No I tried it on our widget. But I managed to fix our problem using "weekStartDay".


Post Reply