- it is a web page (Asp.Net MVC), multi-language including english, latvian, lithuvian, russian, polonia.
- For selecting a date we choose the jQuery-Ui-datepicker including extra localization files for each language. (Date is given as string:
"DateTime".ToString("d", new CultureInfo("lv"))
)
All runs fine with all languages at my development computer (Win10, DotNet 4.5, Visual Studio 2012).
Running the web application at the server (Windows Server 2012 R2) other languages without problems. But the latvian language leads to problems.
I added trace code around the CultureInfo for Latvian 'lv'.
There is an difference between the CultureInfo.DateTimeFormat.ShortDatePattern
between development notebook and web Server.
CultureInfo.DateTimeFormat.ShortDatePattern - my computer: 'dd.MM.yyyy' - web server : 'dd.MM.yyyy.'
the fastest solution would be: trim final point at datetime format. (the javascript seems to work without the 'final point')
- Is it a Framework Bug ?
- which system needs a fix ? the server or my computer (inclusing javascript datepicker localization source)
- How to solve it in a nice way (so it doesnt seems hacky)
thanks, Mathias