I have a DatePicker configured:-
@(Html
.Kendo()
.DatePickerFor(x => x.Date)
.HtmlAttributes(
new
{ @
class
=
"form-control"
})
)
When running locally, the date format is correct (for me in en-AU).
When the same code is published to Azure (running en-US) the date format is incorrect.
If the culture is manually set on the client (using kendo.culture("en-AU")) it doesn't make a difference.
If I force the culture on the server side, it works:-
@(Html
.Kendo()
.DatePickerFor(x => x.Date)
.Culture(
"en-AU"
)
.HtmlAttributes(
new
{ @
class
=
"form-control"
})
)
Why is the DatePicker ignoring the client side culture (both implicit and explicit)?