Wrong time zone of calendar events

Hybrid View

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

    Wrong time zone of calendar events

    Hello,

    The web server and the clients are in different time zones, for example:
    server: 16 Oct. 2013 8:52:36 AM
    client: 16 Oct. 2013 4:53:25 PM

    I am using the CalendarPanel (an exact copy of your calendar online example) to add events in a database. The events' time is correct in the database (sql server 2008 r2), for example this is what a query using sql server management studio returns:

    eventid calendarid startdate enddate title
    28 1 2013-10-17 16:00:00.000 2013-10-17 16:30:00.000 stis17
    27 1 2013-10-16 17:00:00.000 2013-10-16 17:00:00.000 neo111
    23 1 2013-10-16 00:00:00.000 2013-10-16 01:00:00.000 qwerty

    When I access the calendar web page from my visual studio working copy running locally (i.e. local web server), the events render correctly:
    Click image for larger version. 

Name:	callocal.PNG 
Views:	19 
Size:	2.5 KB 
ID:	7051

    But when I am using the same web application in the remote server, the time of the events is shifted by exactly the hour span between my location and the server's thus causing the calendar to render incorrectly:
    Click image for larger version. 

Name:	calwrong.PNG 
Views:	14 
Size:	2.8 KB 
ID:	7052

    Why is this happening and how can this be fixed? Does this relate to a json bug, maybe?

    Thank you very much.
  2. #2
    Hi @Mimisss,

    I think you caught a related thread correctly.
    http://forums.ext.net/showthread.php?24696

    I posted it here for references.
    Last edited by Daniil; Oct 17, 2013 at 5:22 PM.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @Mimisss,

    I think you caught a related thread correctly.
    http://forums.ext.net/showthread.php?2469

    I posted it here for references.
    ???

    wrong reference?
  4. #4
    Sorry, corrected.
  5. #5
    Quote Originally Posted by Daniil View Post
    Sorry, corrected.
    Ah, yes, the same problem. Only I am using version 1.x so there is no such thing as
    JSON.GlobalSettings.DateTimeZoneHandling
    , I guess. Should I expect a fix in a new release then?
  6. #6
    I am not sure it will appear in v1.x. Also there is no time frame for a new release. So, let's start from coming up a solution for you.

    1. Do you have Ext.NET v1 sources?

    2. Please demonstrate how you serialized the data.

Similar Threads

  1. Replies: 14
    Last Post: Oct 18, 2013, 6:04 AM
  2. Replies: 5
    Last Post: Feb 17, 2013, 12:51 AM
  3. [CLOSED] Time zone for time in UTC
    By krzak in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Jun 01, 2011, 1:56 PM
  4. Replies: 15
    Last Post: Feb 03, 2011, 1:27 PM
  5. [CLOSED] Different time zone settings on DateFields
    By georgek in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 04, 2010, 1:40 AM

Tags for this Thread

Posting Permissions