PDA

View Full Version : [OPEN] [#45] DateField Localization Issue



softmachine2011
Aug 30, 2012, 11:09 AM
In my MVC application with spanish language all datefields start week in sunday instead of Monday.

I see that ext-lang-es.js locale javascript has startDay: 1, and this is correct but if you see dateField.startDay the value is 0.

It seems that localization config for this property isn't applied correctly.

Daniil
Aug 30, 2012, 2:00 PM
Hi,

Thanks for the report. It is an ExtJS bug.
http://www.sencha.com/forum/showthread.php?240168

For now please set up StartDay explicitly for DateFields.

softmachine2011
Aug 30, 2012, 4:03 PM
Well as I can see in the ticket, localization will pass a revision in future releases of ExtJS right?

We have to wait for it then.

Daniil
Aug 30, 2012, 6:04 PM
Hope, they will fix it soon. I asked for any time frame. No answer yet.

softmachine2011
Sep 21, 2012, 8:34 AM
Hi,

With new Ext.JS 4.1.2 version I see that datepicker week starts in monday and datefield in sunday. With es-ES culture.

Right now, the bug is not fixed.

Daniil
Sep 21, 2012, 11:53 AM
Thank you for the report. I have update the Sencha thread. Hope they will answer something concrete.

Baidaly
Nov 17, 2012, 2:05 AM
Opened an Issue to track this defect, see

https://github.com/extnet/Ext.NET/issues/45

Daniil
Dec 29, 2012, 9:42 AM
I re-reported it again.
http://www.sencha.com/forum/showthread.php?252625

softmachine2011
Jun 20, 2013, 10:31 AM
Hi,

I'm using Ext.NET 2.1 r4377 that I believe that uses ExtJS 4.1.3, how can we fix this issue or which code must override?
In our scenario, migrate to Ext.NET 2.2 is not an option right now.

Any suggestion would be appreciated

Daniil
Jun 21, 2013, 7:36 AM
Hi @softmachine2011,

Currently, it is not fixed even in the latest. I will try to fix right now...

Here it is.

Ext.form.field.Date.override({
initComponent: function () {
if (!Ext.isDefined(this.initialConfig.startDay)) {
this.startDay = Ext.picker.Date.prototype.startDay;
}

this.callParent();
}
});

softmachine2011
Jun 21, 2013, 11:51 AM
Yes, works as expected.

Thanks for fix