CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

sometimes current time wrong

by gbh100 » 08 Apr 2016 14:22

The current time line that shows on the current day is sometimes ahead one hour, but not always. I am using Chrome as a browser and we are in the Eastern Time Zone, New York & Toronto. We are currently in Daylight Savings Time as we changed clocks in March, but the problem existed before that too. I haven't been able to determine why and this is not something that I set. Any thoughts?
gbh100
 
Posts: 80
Joined: 30 Dec 2014 17:13
Location: Canada

by Alexander Bulei » 08 Apr 2016 16:15

Hi gbh100,

Can you reproduce this problem in simple testcase project?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by gbh100 » 17 May 2016 16:49

I was creating a test case and was able to narrow the issue. It has to do with changing the StartHour from what the scheduler had on creation. I do this in my application as I only look at a single day and I have the StartHour and EndHour represent a stores opening and closing. When I do an AjaxRerender on the scheduler the current time is recalculated on the original StartHour and not the current one. Is this a bug or is there something that I can do to have the current time recalculated on the new StartHour?
gbh100
 
Posts: 80
Joined: 30 Dec 2014 17:13
Location: Canada

by Alexander Bulei » 19 May 2016 18:35

Hi gbh100,

Any screenshot or better, video to show us?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by gbh100 » 19 May 2016 20:19

Here is a sample app. When you press the Rerender button the calendar will be redrawn and then a few seconds later the time will advance one hour.
You do not have the required permissions to view the files attached to this post.
gbh100
 
Posts: 80
Joined: 30 Dec 2014 17:13
Location: Canada

by assapan » 20 May 2016 13:28

Hi, the problem seems to be in the javascript procedure realodTime = window.setInterval(function () {
but i can't understand why so far !
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by assapan » 20 May 2016 14:19

Hi alex,
I found a solution for this problem in jquery.calendar.js , it is due to realodTime interval procedure which is not reloaded after a ajaxrerender due to
Code: Select all
(typeof realodTime == "undefined")
so procedure is handling options.startHour not reloaded.

what i did ( maybe not the best way )
Code: Select all
         
            if (typeof realodTime != "undefined") {
                window.clearInterval(realodTime)
            }
/*            if (typeof realodTime == "undefined") { */
                realodTime = window.setInterval(function () {
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 20 May 2016 14:21

Hi assapan,

Yeah, I found it too ;)
I will fix and commit for next build.
Thanks ;)

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by gbh100 » 20 May 2016 14:22

Thanks
gbh100
 
Posts: 80
Joined: 30 Dec 2014 17:13
Location: Canada


Return to JQScheduler

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.