Post by emilie »

Hi,

I tried to set my configuration and I want to set weekStartDay to monday.
on first try, with only this configuration :

{
  weekStartDay: 1
} 

When view is loaded, weeks start on monday, ok, but when I zoom out then zoom in to return to the default view, weeks start on sunday :(

On second try, I configure all my presets on the configuration to set french date format, and in this case, the weekStartDay option is already ignored.

{
  presets: [
    {
      base: "manyYears"
    },
    {
      base: "year",
      headers: [
        {
          unit: 'year',
          dateFormat: 'YYYY'
        },
        {
          unit: 'quarter',
          dateFormat: 'TQ'
        }
      ]
    },
    {
      base: "monthAndYear",
      headers: [
        {
          unit: 'year',
          dateFormat: 'YYYY'
        },
        {
          unit: 'month',
          dateFormat: 'MM/Y'
        }
      ]
    },
    {
      base: "weekAndMonth",
      headers: [
        {
          unit: 'month',
          dateFormat: 'MM/Y'
        },
        {
          unit: 'week',
          dateFormat: '{Sem. }WW'
        }
      ]
    },
    {
      base: "weekAndDayLetter",
      headers: [
        {
          unit: 'week',
          dateFormat: 'DD/MM/Y'
        },
        {
          unit: 'day',
          dateFormat: 'd1'
        }
      ]
    },
    {
      base: "weekAndDay",
      headers: [
        {
          unit: 'week',
          dateFormat: '{Sem.}WW - DD/MM/Y'
        },
        {
          unit: 'day',
          dateFormat: 'd1'
        }
      ]
    },
    {
      base: "hourAndDay",
      headers: [
        {
          unit: 'day',
          dateFormat: 'd1 DD/MM/Y'
        },
        {
          unit: 'hour',
          dateFormat: 'HH{h}'
        }
      ]
    },
    {
      base: "minuteAndHour",
      headers: [
        {
          unit: 'hour',
          dateFormat: 'HH{h}{ le }DD/MM/Y'
        },
        {
          unit: 'minute',
          dateFormat: 'mm'
        }
      ]
    },
    {
      base: "secondAndMinute",
      headers: [
        {
          unit: 'minute',
          dateFormat: 'HH:mm{ le }DD/MM/Y'
        },
        {
          unit: 'second',
          dateFormat: 'ss'
        }
      ]
    }
  ],
  weekStartDay: 1
}

How can I force always Monday as first day of week, especially in second case?


Post by Terence »

Thank you for the report. I have reproduced it. Looks like a bug.

Created a ticket to investigate.
https://github.com/bryntum/odoo-support/issues/88


Post by emilie »

Thank you Terence.


Post by emilie »

Hi,
does version 1.3.8 correct this point?


Post by Terence »

Yes it should.


Post Reply