Chrome中的Date.toLocaleString()被破坏了吗? [英] Date.toLocaleString() broken in Chrome?

查看:220
本文介绍了Chrome中的Date.toLocaleString()被破坏了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Date.toLocaleString()在Chrome中返回:




  • Mon Jan 18 2010 16:47:42 GMT + 1100(AUS Eastern夏令时)



在firefox中,它是这样的:


  • 2010年1月18日星期一下午4点47分42秒



浏览器版本似乎并不重要。任何人都有关于此的建议?

解决方案

Date.toLoacaleString是一个关于chrome的问题:



http://code.google.com/p/chromium/issues/detail?id=29779&q=tolocalestring&colspec=ID%20Stars %20Pri%20Area%20Type%20Status%20Summary%20Modified%20Owner%20Mstone%20OS


Date.toLocaleString() returns this in Chrome:

  • Mon Jan 18 2010 16:47:42 GMT+1100 (AUS Eastern Daylight Time)

In firefox, it's this:

  • Monday, 18 January 2010 4:47:42 PM

Browser version doesn't seem to matter. Anyone have a suggestion on this one?

解决方案

Date.toLoacaleString is an issue on chrome:

http://code.google.com/p/chromium/issues/detail?id=29779&q=tolocalestring&colspec=ID%20Stars%20Pri%20Area%20Type%20Status%20Summary%20Modified%20Owner%20Mstone%20OS

这篇关于Chrome中的Date.toLocaleString()被破坏了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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