date always foramt with GMT timezone in chrome

  1. #1

    [CLOSED]date always foramt with GMT timezone in chrome

    Hello,

    our user's timezone : GMT+0800

    it works fine in IE and firefox when i format a date object.
    but in chrome,it always uses GMT instead of user's timezone.

    <ext:GridPanel ID="MasterGrid" runat="server" Region="North" Split="true" Height="230"  Padding="0">                           
    	....
    	<ColumnModel>
    		<Columns>	
    		<ext:DateColumn ID="Column1" runat="server" Text="SDATE" Width="100" DataIndex="SDATE"
    			Sortable="true" Format="yyyy/MM/dd(HH)" />
    		</Columns>
    	</ColumnModel>		
    </ext:GridPanel>

    Any help would be nice!
    Thank you very much.
    Last edited by gpx1981; Mar 30, 2015 at 2:23 AM.
  2. #2
    Add the following to your Global.asax

    protected void Application_Start()
    {
        JSON.GlobalSettings.DateTimeZoneHandling = DateTimeZoneHandling.Local;
    }
  3. #3
    it works!
    thanks a lot!
  4. #4
    You're welcome

Similar Threads

  1. [CLOSED] Wrong JSON Date Timezone ...
    By prointernet in forum 1.x Legacy Premium Help
    Replies: 17
    Last Post: May 22, 2014, 5:22 AM
  2. Replies: 8
    Last Post: May 20, 2013, 4:01 AM
  3. Replies: 2
    Last Post: Apr 23, 2012, 12:47 PM
  4. Replies: 1
    Last Post: Apr 13, 2012, 1:52 PM
  5. [CLOSED] DateField timezone issues
    By daneel in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 24, 2011, 10:37 PM

Posting Permissions