[CLOSED] Problem with dates

Page 1 of 3 123 LastLast
  1. #1

    [CLOSED] Problem with dates

    Attached Thumbnails Click image for larger version. 

Name:	snapshot - database.png 
Views:	33 
Size:	8.8 KB 
ID:	6571   Click image for larger version. 

Name:	snapshot - application.png 
Views:	43 
Size:	91.1 KB 
ID:	6572  
    Last edited by Daniil; Jul 29, 2013 at 5:48 AM. Reason: [CLOSED]
  2. #2
  3. #3
    Hi @supera,

    If you would deal wit the latest Ext.NET sources from the SVN trunk, then, I guess, this should work.
    http://forums.ext.net/showthread.php?24696#post108759

    I understand that you are with v2.1, but could you test your application with that thing and the Ext.NET trunk? Just to know for sure it helps or not.

    If it doesn't help, please provide a test case to reproduce.

    If it helps, we will think how to get it working with v2.1.
  4. #4
    Hi Daniil!

    I updated the ext.net from svn/trunk...

    I insert this command in global.asax, in application start

    Ext.Net.JSON.GlobalSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Local
    But the issue still occurs...

    In time.. when I'm run the application in Visual Studio, Works fine!
    When I published in host server, I have the problem... host server is Arvixe.com...
    I think that JSON gets the timezone of the host server...
    How I can force the timezone to local machine? Is the code above?

    Thanks for any help!
  5. #5
    Quote Originally Posted by supera View Post
    I think that JSON gets the timezone of the host server...
    How I can force the timezone to local machine? Is the code above?
    Well, it is what this setting is supposed to do.
    Ext.Net.JSON.GlobalSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Local
    How do you serialize the dates? How do you bind the data to the Store? Could you, please, provide a sample?
  6. #6
  7. #7
    We just need to understand better how to you bind the data.

    Please post a WebMethod which you refers in the AjaxProxy's Url.
  8. #8
  9. #9
    Hello!

    Thanks for your information. Take a look at this picture that I have in Toronto using your sample: Click image for larger version. 

Name:	1.PNG 
Views:	30 
Size:	3.8 KB 
ID:	6603

    I think your problem in definition of MS format: UTC milliseconds since epoch

    So, for different time zones it will be different and I think on your server and your local computer you have different time zones.

    What I would recommend is to use another format for deserialization.
  10. #10
    Just to clarify something.

    We (Ext.NET) don't affect how a WebService deserialize a response. So, this setting
    Ext.Net.JSON.GlobalSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Local
    doesn't make sense in your case. I was just unsure how you bind the data.

    This time zone issue is quite a common problem. These links can shed some light on the topic.
    http://blog.scosby.com/post/2013/03/...e-Columns.aspx
    http://social.msdn.microsoft.com/For...ed-on-timezone
Page 1 of 3 123 LastLast

Similar Threads

  1. [CLOSED] Specify how object is serialized in DirectMethod
    By jchau in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 12, 2013, 8:18 PM
  2. [CLOSED] Dates & Json & ComboBoxes
    By PhilG in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 24, 2012, 3:45 PM
  3. Replies: 10
    Last Post: Aug 01, 2011, 2:58 PM
  4. Replies: 3
    Last Post: May 11, 2010, 5:47 AM
  5. Problem with disable dates, when using culture setting
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 26, 2009, 10:25 AM

Posting Permissions