Firefox中的Lightswitch日期显示不正确 [英] Lightswitch dates in Firefox displayed incorrectly

查看:127
本文介绍了Firefox中的Lightswitch日期显示不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道为什么所有日期都在Chrome和IE中以正确(基于英国)的dd/MM/yyyy格式显示,但在Firefox中被设置为MM/dd/yyyy格式吗?

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?

除了将每个日期显示转换为自定义控件并使用moment.js将日期呈现为所需格式之外,是否还有其他解决方法?

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设置为英国位置. 谢谢

PC is set to UK location in Control Panel. Thanks

推荐答案

遇到相同的问题,并且在msls库中进行了一些兔子洞探索之后,我们确定解决方案是确保在Firefox选项上选择的设置\语言屏幕为英语/英国[en-gb]",如以下示例所示:-

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: -

这篇关于Firefox中的Lightswitch日期显示不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆