2

我们有一个奇怪的情况,如果我们以某种样式输入值,Ext.NET 日期字段会“切换”格式。

具体来说,如果我输入“01/12/09”,当我模糊该字段时,它将显示为“12/01/2009”。如果然后我聚焦该字段并删除“20”,因此当我模糊该字段时格式为“12/01/09”,它将“切换”并显示“01/12/09”。

奇怪的是,我们只在生产环境中看到这种行为。我已经完成了所有明显的事情,比如检查生产框上的语言环境/区域设置,但还没有发现任何可以规避这种行为的东西。

有人对接下来要检查的地方有什么想法吗?这是基于 Ext.js 3.3.1 的。

非常感谢,

道格

4

1 回答 1

2

Here's a simple test I used in an attempt to recreate the problem, although was unable.

<%@ Page Language="C#" UICulture="en-GB" %>

<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Ext.NET Example</title>
</head>
<body>
    <form runat="server">
        <ext:ResourceManager runat="server" />

        <ext:DateField ID="DateField1" runat="server" />
    </form>
</body>
</html>

Which version of Ext.NET are you using 1.0, 1.1 or 1.2?

Can you modify the sample above to demonstrate the issue.

于 2011-10-03T19:33:29.810 回答