JavaScript highcharts gets my hour time wrong

highcharts gets my hour time wrong

I'm from venezuela just in case. I doing a real time system where I get in my db the time,seconds and miliseconds like 10:39:09:2

I apply the strtotime($time) then I sended by json to charted

and in my highcharts i got in the

xAxis: {
  type: 'datetime',
  title: {
    text: 'Tiempo'
  }

the utc function is already false

Highcharts.setOptions({
  global: {
    useUTC: false
  }
});

and my function to get the json is

function requestData_Frecuencia() {
  $.ajax({
    url: 'Datos_Frecuencia.php',
    success: function (point) {
      var series = chart_Frecuencia.series[0],
        shift = series.data.length > 400;
      //add point
      chart_Frecuencia.series[0].addPoint(eval(point), true, shift);
      setTimeout(requestData_Frecuencia, 500);
    },
    cache: false
  });
}

PS. is been a while since I write in english so forgive me if I write something wrong o that isn't clear.

Answer:1

You should check the raw values in the database. I know that MySQL stores dates in GMT. Not sure about the DB you are using, but the reason that this is done is:

GMT is an absolute time reference & doesn't change with the seasons.

You will have to convert the time to your locale, which is UTC–04:30

Have a look at: Convert date to another timezone in JavaScript

Answer:2

Highcharts doesn't include timezones and only what you can do is disabling UTC,aas you have. THen you need to translate your data or use label formatter / tooltip formatter to display correct data.

Answer:3

encodeURIComponent escapes all characters except the following: - _ . ! ~ * ' ( ) But is it possible to extend the functionality encode the above special characters as well. I know i can do ...

encodeURIComponent escapes all characters except the following: - _ . ! ~ * ' ( ) But is it possible to extend the functionality encode the above special characters as well. I know i can do ...

I ve drawn a pie chart graph using pie chart flot library.. I ve my own custom legend box. So I was trying to know if it is possible to hide the a particular slice based on user input. Like here Ive ...

I ve drawn a pie chart graph using pie chart flot library.. I ve my own custom legend box. So I was trying to know if it is possible to hide the a particular slice based on user input. Like here Ive ...

I am new in Javascript and I am trying to test following code <html> <head> <script src="jquery/jquery.min.js"> </head> <body> <input type="button" value="...

I am new in Javascript and I am trying to test following code <html> <head> <script src="jquery/jquery.min.js"> </head> <body> <input type="button" value="...

  1. element does not exist in cache
  2. element does not have an alt attribute
  3. element does not contain neutrons
  4. element does not follow octet rule
  5. element does not show allotropy
  6. element does not exist in mfs
  7. element does not exist in dom
  8. element does not show catenation
  9. element does not have a match in class
  10. element does not define a default property
  11. element does not exhibit allotropy
  12. element does not exist cypress
  13. element does not exist in selenium
  14. element doesn't have required attribute
  15. element doesn't exist in dom
  16. element doesn't float
  17. element doesn't exist on the window
  18. what element does not contain neutrons
  19. element doesn't have id
  20. element doesnt work

I have a string that I'd like to pull some content from using javascript. The string can have multiple forms as follows: [[(a*, b*) within 20]] or [[...(a*, b*) within 20]] where the "..." may or may ...

I have a string that I'd like to pull some content from using javascript. The string can have multiple forms as follows: [[(a*, b*) within 20]] or [[...(a*, b*) within 20]] where the "..." may or may ...

  1. combine match regex
  2. c# combine regex matches