Dec 27, 2016, 8:00 AM
[OPEN] [3.3.0] [#1405] Timezone Problem - Chrome
Hi all,
There is a bug with datetime types in Chrome with ExtJs. I found some similar cases but it didn't solve my issue.
http://forums.ext.net/showthread.php...-Date-Timezone
http://forums.ext.net/showthread.php...ing-a-DateTime
Thanks,
Vzx
There is a bug with datetime types in Chrome with ExtJs. I found some similar cases but it didn't solve my issue.
http://forums.ext.net/showthread.php...-Date-Timezone
http://forums.ext.net/showthread.php...ing-a-DateTime
<%@ Page Language="C#" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
this.Store1.DataSource = this.Data;
}
foreach (var item in this.Data)
{
Response.Write(((object[])item)[0] + "<br><br>");
}
}
private object[] Data
{
get
{
return new object[]
{
new object[] { DateTime.Parse("01.01.2014") },
new object[] { DateTime.Parse("01.01.2016") },
new object[] { DateTime.Parse("02.01.2016") },
new object[] { DateTime.Parse("06.01.2017") },
new object[] { DateTime.Parse("01.01.2017") },
};
}
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
<link href="/resources/css/examples.css" rel="stylesheet" />
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:GridPanel
ID="GridPanel1"
runat="server"
Title="Array Grid"
Width="700"
Height="350">
<Store>
<ext:Store ID="Store1" runat="server" IDMode="Static">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="Tarih" Type="Date" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:Column runat="server" ID="grid" Width="400" DataIndex="Tarih">
<%-- <Renderer Fn="Ext.util.Format.dateRenderer('d.m.Y h:i:s')" />--%>
</ext:Column>
</Columns>
</ColumnModel>
</ext:GridPanel>
</body>
</html>
How can I solve this problem?Thanks,
Vzx