[OPEN] [3.3.0] [#1405] Timezone Problem - Chrome

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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

    <%@ 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
    Attached Thumbnails Click image for larger version. 

Name:	ie.png 
Views:	66 
Size:	11.9 KB 
ID:	24802   Click image for larger version. 

Name:	chrome.png 
Views:	97 
Size:	16.1 KB 
ID:	24803  

Similar Threads

  1. Replies: 10
    Last Post: Oct 29, 2015, 8:15 AM
  2. Replies: 8
    Last Post: Jun 23, 2015, 3:29 PM
  3. Replies: 7
    Last Post: May 30, 2015, 5:16 PM
  4. date always foramt with GMT timezone in chrome
    By gpx1981 in forum 2.x Help
    Replies: 3
    Last Post: Mar 19, 2015, 1:07 AM

Tags for this Thread

Posting Permissions