Lightswitch dates in Firefox displayed incorrectly

跟風遠走 提交于 2020-01-17 03:43:06

问题


Does anyone know why all dates display in the correct (UK based) dd/MM/yyyy format in Chrome and IE but in Firefox are set to MM/dd/yyyy format?

Is there a workaround other than converting every date display to a custom control and using moment.js to render the date into the required format?

PC is set to UK location in Control Panel. Thanks


回答1:


Having encountered the same issue, and following some rabbit hole exploration in the msls library, we determined that the solution is to ensure the setting selected on the Firefox options\languages screen is "English/United Kingdom [en-gb]" as shown in the following example: -



来源:https://stackoverflow.com/questions/28586138/lightswitch-dates-in-firefox-displayed-incorrectly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!