Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Date change on client side - TimeZone

  1. #11
    Sencha User
    Join Date
    Apr 2009


    Thanks a lot, i'll try that !

    Edit : It works, thanks Sven and Michel.

  2. #12


    This demo project explains how to use timezone for the GWT application regardless browser timezone

  3. #13
    Sencha User
    Join Date
    Mar 2011


    Thanks G.edwin,
    I got it working this way, the problem I still had was in web mode in combination with tomcat. Since it is not easy to control the Classloader in tomcat the gwt-servlet.jar was always loaded prior to my jar named owhatever.jar. I figured out that tomcats classloader order is alway alphabetic so that g*.jar is always loaded prior to o*.jar. So the class was always token from gwt-servlet.jar. To Solve this one could either rename the jars to be loaded in the desired order which I did not like since this might be implementation dependent or to include the code from gwt-servlet.jar except of the Date_CustomFieldSerializer class within my owhatever.jar which I finally did!

  4. #14
    Sencha User
    Join Date
    Jul 2013

    Default java-server-and-client-time-zone-difference-problem-solved

    try this .. it is using javascript to achieve the same thing.


  5. #15
    Ext GWT Premium Member
    Join Date
    Mar 2007
    Houston, TX


    I would suggest you educate your users, rather than change anything.
    If someone modified a record at 1000 in Paris, it was 0900 in London.
    Since the user in Paris sees 1000 and the one in London see 0900, both representing the same instance in local time, I fail to see the problem.
    By the way, if a user in London saves 1000 and then sees 0900, there is a problem in the way you are saving dates, always marshall dates as Date, not String.
    If a user in London saves 1000 and then sees 1100, there is a problem in the way you are reading dates, always read Date and transfer Date, not formatted dates as String from the DB server.
    I went through the same nightmare with users in a dozen timezones, as long as you only transfer Date back and forth, the problem is gone.

  6. #16
    Sencha User
    Join Date
    Oct 2013



    I know that this is an old post but I have the same problem.

    I put my own Data serializer inside the same package on my project but something rare is happening.

    When a Date is going to serialize the GWT Date serializer is used, but when the Date is going to deserialize my own Date serializer is used ???, I don't know what is the problem. Anyone can help me please?

    Thanks in advance.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Date columns change based on client GMT
    By Twain in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 12 Nov 2011, 1:57 PM
  2. Date with incorrect timezone
    By Tim Siney in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 18 Jan 2011, 7:56 AM
  3. client side Validation for Date
    By Alka_5m1980 in forum Community Discussion
    Replies: 0
    Last Post: 31 Mar 2009, 3:26 AM
  4. Change the client's timezone
    By keypoint in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 21 Sep 2008, 1:18 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts