Different display of Dygraphs data in IE and Chrome [duplicate] - google-chrome

This question already has answers here:
javascript Date timezone issue
(3 answers)
Closed 7 years ago.
I'm using Dygraph to show nice graphs of my data. My data has the following structure:
data = [[new Date(\"2015-10-08T11:23:44.712\"),0.01,0.06,0.02],[new Date etc.
This data is supposed to display UTC time, so in the above example it's 11:23. I am living in the Netherlands, where it's UTC +2 in summer time, so the local time is 13:23.
When I check my Dygraph with this data in Chrome, it displays 13:23. However, when I open the same data/graph in Internet Explorer (9, 10 or 11), it displays 11:23 instead of 13:23. It seems to display UTC, not the local.
I have tried to find an answer, but am so far unable to find the reason for the different behavior per browser. To be clear: the data supplied to the graph is always the same, the display is not.
http://dygraphs.com/tests/labelsDateUTC.html was a nice example of UTC display. However, setting labelsUTC to either true or false does not change the display of the time in Chrome, nor IE.
I hope someone can point me in the right direction.

Ok, it might be that I'm just an idiot and that this is why I couldn't find the answer to my problem. Anyway, it seems to be solved. I was playing around with the data string, removing the new Date part (didn't work, broke everything), but then I added the Z and now it does work.
So basically, data should be:
[new Date("2015-10-08T11:23:44.712Z"),0.01,0.06,0.02]
Instead of
[new Date("2015-10-08T11:23:44.712"),0.01,0.06,0.02]
Notice the absence of the Z in the wrongful version. I find it interesting that Chrome doesn't need the Z and IE does, but well.

Related

Chrome Device Mode changes

When opening dev tools, the device mode Icon is often not available.
In trying to determine why, it appears that it's use is now limited to a single tab in the browser. It used to work on as many as you liked.
It's extremely problematic,
as I often have several responsive pages that need comparison.
Anyone know why Google is limiting that function?
I used that an average of 8 hours a day for the past year and a half,
and suddenly it's unavailable for most of the tabs I have open.
does anyone have a work around?

Font Embedding is working strangely

I have a webpage which displays one label containing font as font-family:OCR A Extended. This page contain nested web page which can be navigated through forward and backward button. Suppose the total nested page is 20, in this case till 15 the font is coming fine as expected after that for rest of the pages it is getting changed to default font of the page i.e. Times New Roman.
Also this is not happening frequently, its happening once in 100 times but as the issue is unavoidable so looking for the possible fix for this.
I searched and went through this URL also https://msdn.microsoft.com/en-us/library/ms533034(v=vs.85).aspx but with no success.
Please help me and bear if the question is too vague.

Jump to a specific entry not working for several browser

i was working with Screen and some Qwebkit based browser. I do thumbnails of specific entrys of a webpage via Achnor. That worked fine till some days.
The issue is that a lot of webbrowsers (including my crawler) aren't able to Jump to a specific Anchor of a post entry. This issue occours only on this specific Website by Blizzard Entertainment.
I took a look into the webpage several times with firebug but i can't see the reason for the Bug. I hope that someone is able to tell me whats wrong with it.
http://eu.battle.net/hearthstone/de/forum/topic/14899382319?page=4#69

Decimal numbers not adding correctly in AS3 [duplicate]

This question already has answers here:
Is floating point math broken?
(31 answers)
Closed 7 years ago.
In my program, I have a score multiplier variable of type 'Number'
When I try to add 0.1 to it, I have a problem.
Here is the code:
scoreMultiplier += 0.1;
trace(scoreMultiplier);
scoreMultiplier is originally set to 1, and after the first run through, I correctly get a value of 1.1. However, the second time, the trace shows 1.2000000000000002, and the next time 1.3000000000000003.
There is no other code which modifies scoreMultiplier. This is a problem, first because it is shown on my game screen and goes off the screen, and second because if conditionals where scoreMultiplier==2 for example do not work due to the bizarre fault in the addition.
If anyone knows what's causing this, or at the very least how to truncate the value to 1 decimal place, that would be great.
Flash does not like floating points. At all. Avoid them as much as you can.

Rotate (3d cube) in IE.10 & IE.11

I want to display a 3d object in Internet Explorer 10 and 11 (Chrome works as intended).
To make it simple I created a Fiddle with my current status.
I browsed the comments on this website and some others and mainly got the feedback that IE.10 and IE.11 requires the perspective setting in each face definition.
I made another Fiddle trying this, yet the base rotation problem still remains in those two browsers.
Both tries have the problem in a 90deg turn, which are getting displayed white in IE.10 and IE.11.
What do I need to change or improve on the first example to get it running correctly in IE.10 and IE.11?