Upgrade from 15.1.0.33 to Current Version

Hi,

I have an old project that is using the Schedule control v15.1.0.33.

This project has been around for about 5 years, and has been working fine but for some reason there have been a number of issues just recently.

The first issue, from just last week, was a client in the UK (test server in UK) who started getting errors, just after he switched to summer time.  The client switched their PC to "Universal time (London + 12 hours)" (his words, so not quite sure what he did), and then the schedule started working again.  By adding ".TimeZone("Europe/London")" to the schedule creation, the schedule started working again for the client (after putting his timezone back).

For me through all of this, in Aus, the schedule was working as expected, as it has for the last 5 years.  (running dev on local machine in Aus, and test on server in UK).

Today, I try the schedule, and now it doesn't work in either Dev or Test.  This is 48 hours after summer time here ended.

I do not recall these issues happening at this point in the previous 5 years.

** Below is the code used for v15.1.0.33 **
The project is an ASP.Net MVC project. (Not .core).

The code in my view is:
@(Html.EJ().Schedule("Schedule")
        .Width("100%")
        .Height("710px")
        .AllowKeyboardNavigation(true)
        .TimeMode(Syncfusion.JavaScript.TimeMode.Hour24)
        .CurrentDate(Model.StartDate)
        .MinDate(Model.MinDate.Value)
        .MaxDate(Model.MaxDate.Value)
        .FirstDayOfWeek(Model.StartDayOfWeek)
        .WorkHours(hrs => hrs.Highlight(false))
        .ShowCurrentTimeIndicator()
        .ShowHeaderBar(true)
        .Views(new List<string>() { "Week" })
        .ShowAllDayRow(false)
        .ReadOnly(Model.ReadOnly)
        .ShowQuickWindow(false)
        .ShowNextPrevMonth(true)
        .ShowAppointmentNavigator(true)
        .TimeScale(ts => ts.Enable(true).majorSlot(60).minorSlotCount(1))
        .CategorizeSettings(fields => fields.Datasource(@Model.Categories).Enable(true).Id("Id").Text("Name").Color("Color"))
        .AppointmentSettings(fields => fields.Datasource(Model.Appointments.ProposedAppointments)
            .Id("AppointmentGuid")
            .StartTime("StartTime")
            .EndTime("EndTime")
            .Description("Description")
            .Subject("Subject")
            .Categorize("CategoryId")
            .ApplyTimeOffset(true)
            )
        .ScheduleClientSideEvents(e =>
            e.Create("onCreate")
            .AppointmentClick("onAppointmentClick")
            .AppointmentCreated("onAppointmentCreated")
            .AppointmentWindowOpen("onAppointmentWindowOpen")
            .AppointmentRemoved("onAppointmentRemoved")
            .BeforeAppointmentRemove("onBeforeAppointmentRemove")
            .ResizeStart("onResizeStart")
            .ResizeStop("onResizeStop")
            .DragStart("onDragStart")
            .DragStop("onDragStop")
            .QueryCellInfo("onQueryCellInfo")
            .Navigation("onNavigation")
        ))

I have also attached images showing my Content and Script folders with regards to Syncfusion. Plus the error I get in the browser.
I am using jquery 3.3.1.
** End **

The Syncfusion files and jquery should not have changed for many years.
I cannot see a reason why all of a sudden the application has stopped working.

As I said above, I am using 15.1.0.33, and I see that the latest version is 18.1.0.42.
I feel that it might be best to upgrade the version before worrying about the issues that we see.  Your thoughts?  Or can we fix the issues I have listed above?

I took a copy of the project and attempted to upgrade to 18.1.0.42, but no luck.  No error messages, but also no schedule on my page.
If you agree that upgrading to v18 is the smart move now, can you please advise how I would do so?

Hopefully this makes sense, but if not, please ask for more information.

Thanks in advance.

Cheers
Jarrod

**PS I have just been doing some further testing.  And can confirm 100% (using Chrome, Firefox and Edge), the following results:
    Aus TimeZone, Dev Server (in Aus), error
    Aus TimeZone, Test Server (in UK), error
    UK TimeZone, Dev Server (in Aus), works
    UK TimeZone, Test Server (in UK), works









Attachment: Project.Files_942d0e39.7z

6 Replies

HB Hareesh Balasubramanian Syncfusion Team April 7, 2020 12:19 PM UTC

Hi Jarrod, 

Greetings from Syncfusion Support. 

We have validated your reported problem and for that we have prepared sample with our latest version v18.1.0.42 and it is working properly at our end. And the sample can be downloaded from the following link, 


Kindly thy the above sample and if you have any other concerns please revert for further assistance. 

Regards, 
Hareesh 



JA jarrod April 7, 2020 02:18 PM UTC

Thanks for the quick feedback.

I am attempting to integrate the sample into my existing application, and I will keep you posted.

Quick question though, are you expecting the the issues I have had with the time zone be fixed with this later version?

Thanks



JA jarrod April 7, 2020 04:09 PM UTC

Ok, using your sample project, I have now updated my application to use 18.1.0.42.

I had to do a lot of massaging as there was a mix of versions across the CSS and JS files, but I upgraded all to 18.1.0.42, and initially it works.

Back to the other issues that I raised, I tested on my dev server and the test server, and the issues I was getting before are not happening now.  Very weird behaviour.
Unfortunately, I can't easily tell if the upgrade from 15 to 18 has fixed the issues.

One more question while I am here - as I said the client is in the UK, and the (test) server is in the UK, while I am developing in Aus.
When I create an appointment in the Schedule, it is sent back to the server, and returned to me with a different time.
For now I am more than happy to have the appointments in UK time, no matter where the user is based, or their time zone.  (For almost every time, the users will also be based in the UK).

Thank you.




HB Hareesh Balasubramanian Syncfusion Team April 8, 2020 12:32 PM UTC

Hi Jarrod, 

Thanks for the update. 

we are happy that your issue has been resolved in our latest version, we are not clear about your second query. please share more details like issue replication steps/Scheduler rendering code/image/video demo for the better serve. 

Regards, 
Hareesh 



JA jarrod April 8, 2020 03:54 PM UTC

Apologies I wasn't clear in the previous post.

I have a website that will be used by people in the UK, and is hosted on a server in the UK.
We are using the schedule control to allow appointments to be made.

If the site is used in the UK, it works as expected.  (I fudge this in Chrome by changing the Geolocation in developer tools)
If a create an appointment, from 2am to 10am, it is displayed as 2am to 10am in the Schedule, and is saved to the database as those times as well. 
The database does not store any time zone information or offsets, just the time.

However, I am based in Australia.
When I use the Schedule, I can create an appointment, from 2am to 10am, it is sent to the server and saved to the database as 2am to 10am.  However when the schedule is refreshed, that appointment will now be displayed to me, in Australia, as 11am to 8pm.

For the time being, we are happy to have the times always displayed as UK time (as they are saved in the database).

I have attached a file that contains 4 files:
    - Video of how the schedule works from UK
    - Video of how the schedule works from Aus
    - View of the data stored in the DB
    - Text file containing the ASP.Net code, and the parent div of the schedule as rendered in the browser.

Hopefully that gives you all the information that you require.

Thanks

(As I said I am happy to have all times as UK time for now, but will probably look to implement different time zones correctly. 
So that if I enter in an appointment while in Aus, say Thur 2am to 8am, and it is then sent to the database as UK Time Wed 5pm to 11pm (previous day)
Do you have any resources you can point me towards for this please?)


Attachment: Schedule_ad63a1a9.7z


NR Nevitha Ravi Syncfusion Team April 10, 2020 01:26 PM UTC

Hi Jarrod, 

Thanks for the clarification. 

We have validated your reported problem at our end by preparing a CRUD sample and validated with two time zones (UTC +10:00 & UTC +00:00) but it is working properly at our end. You can refer the sample from the following link. 


And for further reference we have taken a video demo of it and it can be downloaded from the following link, 

Kindly try the sample and revert us back with the issue reproducing sample or code snippet to validate further on this. 

Regards, 
Nevitha 


Loader.
Up arrow icon