Page 1 of 2

Interactive Graph Time

Posted: Mon Jan 15, 2018 5:50 pm
by Dehatter
I maybe doing something wrong (as it seems in my past problems) but on my site, the time in the interactive graph shows 5 hrs earlier than the actual time the reading is taken.

Tom

Re: Interactive Graph Time

Posted: Wed Jan 17, 2018 7:45 pm
by RobF
Mine is doing that as well. I don't see a way to set the time or time zone for this block.

Re: Interactive Graph Time

Posted: Wed Jan 17, 2018 7:52 pm
by RobF
Just saw the previous thread regarding this:
viewtopic.php?f=56&t=653

Yea, the full screen has the correct times, just the block is off (5 hours here where we are here).

Any progress or ideas?

Re: Interactive Graph Time

Posted: Wed Jan 17, 2018 8:26 pm
by jay_hoehn
Interesting. Your full screen time is correct. Mine displays the same as in the block.

Jay
http://www.jayswoodfurniture.com/meteo/indexDesktop.php

Re: Interactive Graph Time

Posted: Wed Jan 17, 2018 9:36 pm
by Fraggboy
Both Current and Interactive blocks are showing the correct time for my site. I have no idea as to what would cause that issue.. :/

Current Block:
current conditions.jpg
current conditions.jpg (34.02 KiB) Viewed 29527 times
Interactive Block:
Interactive graph.jpg
Interactive graph.jpg (39.8 KiB) Viewed 29527 times

Re: Interactive Graph Time

Posted: Thu Jan 18, 2018 5:00 am
by Jachym
:D yes, same for me, this is very odd

Re: Interactive Graph Time

Posted: Thu Jan 18, 2018 9:09 pm
by Dehatter
This is weird. When I check Jay’s station it was off by 5 hours like mine, but Fraggboy’s is indeed correct. Not sure why his would be different from the rest. A time zone selection issue? Gonna check into that.
Tom

Re: Interactive Graph Time

Posted: Thu Jan 18, 2018 9:10 pm
by Jachym
Im 100% sure it worked fine before, surely people would notice if all graphs had incorrect times. It is strange that it only occurs for some, they must have changed something in the Highcharts script, it is loaded from the central CDN, so it always uses the latest version automatically

Re: Interactive Graph Time

Posted: Thu Jan 18, 2018 9:28 pm
by Dehatter
I can confirm that changing the time zone does not affect the time on the graph. To add to the confusion, it is correct in the graph shown using fixed bootstrap setup.

Re: Interactive Graph Time

Posted: Thu Jan 18, 2018 9:34 pm
by Dehatter
Additionally when I check yours Jachym, it is off by 1 hour.

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 7:47 am
by Jachym
the mobile site uses the exact same script as the interactive graph, the exact same time processing

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 2:56 pm
by Dehatter
all I know is that something is different.

Something about the axis generation. The label comes from the axis.

Also has something to do with time zones because your site is +1 hr and mine is -5 hours. Which is how far we are from UTC.

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 4:24 pm
by droiddk
Try removing all other blocks on the page that are using Highcharts.

Regards

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 6:09 pm
by Jachym
The problem is that for me it works fine on my page, so it is problematic to fix something that seems to be "fixed" from my side

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 6:53 pm
by droiddk
Jachym wrote: Fri Jan 19, 2018 6:09 pm The problem is that for me it works fine on my page, so it is problematic to fix something that seems to be "fixed" from my side
The graph on this site: http://www.meteotemplate.com/template/indexDesktop.php is one hour ahead?

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 8:45 pm
by Dehatter
This is what it shows for me.

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 9:09 pm
by Jachym
OK,

here is the bad news:
The highcharts script is not loaded from your server, but from the CDN which means always the latest version is used. Some change must have been made in HCh, because it affects more pages and I would 100% notice it and not release it if the times were wrong. Looking at the documentation, the recent new version (6.0) has no changes in terms of time handling so it will be complicated to try to find what is causing it.

Good news:
I can see the problem on my page as well, which gives me a chance to try to play around with it

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 9:14 pm
by Jachym
OK, so to make things even more mysterious... the EXACT same script (loaded from the same location) loads differently on its own and when on the homepage, can someone verify this?

http://www.meteotemplate.com/template/i ... ctiveGraph
http://www.meteotemplate.com/template/indexDesktop.php

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 9:20 pm
by jay_hoehn
Jachym,

I can confirm the problem. On the stand alone block the last datapoint reads 15:10 on the full page it reads 23:10.

Jay

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 9:32 pm
by Jachym
OK try now please

(it is 10:32 PM, thats what it should show on my page)

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 9:42 pm
by jay_hoehn
Jachym,

Now both read 22:34 for me. Maybe you found the issue?

Jay

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 10:08 pm
by Jachym
Yes, I did make some changes, works for me as well

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 10:27 pm
by jay_hoehn
Jachym,

Will you be releasing a fix?

Jay

Re: Interactive Graph Time

Posted: Fri Jan 19, 2018 11:38 pm
by Jachym
Hopefully yes, but I need to test it a bit more before releasing it to make absolutely sure it is working

Re: Interactive Graph Time

Posted: Sat Jan 20, 2018 4:32 pm
by droiddk
Jachym wrote: Fri Jan 19, 2018 11:38 pm Hopefully yes, but I need to test it a bit more before releasing it to make absolutely sure it is working
When sure, please tell us what caused this mysterious thing...

Regards