score:0
i believe all you need to do is format/consider for utc. highcharts default is utc (0). (http://api.highcharts.com/highcharts#global) if you change to this:
function appendads(date1) {
alert(new date(date1).toutcstring());
$('#tabletitle').html("<u>info for " + timeconverter(date1) + ":</u>");
...
}
(fiddle) http://jsfiddle.net/j8cte/34/
you will see that it shows correct date with that "toutcstring()" added. you will likely want to convert it to something more pleasant to read, but remember that you will have to keep utc in mind if you don't use "toutcstring()".
update: i wanted to explain that i used "toutcstring()" since it was quick and something i knew off the top of my head. this method wouldn't work for all things, such as further down in your appendads function since it is a string. to explain utc and date formatting, parsing and manipulation in full would be too much for this post. but i will try to go over a few key points when dealing with dates on the web. also, please see mdn for other date info (https://developer.mozilla.org/en-us/docs/web/javascript/reference/global_objects/date).
if you need accurate information and/or logic for dates, you will need to know the date format you get (from server, database, etc...) - whether it is utc or not, for example. then you need to consider if it needs to be manipulated for display (such as for the viewers browser's timezone). and finally, if that date is being used internally, you need to consider if, when, and where you need to convert it once again (as appropriate).
Source: stackoverflow.com
Related Query
- Highcharts date off by one day
- Highcharts data off by one day
- highcharts link series such that turn one off turns off the other
- Highcharts tickinterval set to one minute shows only one date
- Highcharts Scatter, plotting 3 days data on 12AM to 12PM of one day x-axis
- Highcharts - Only Returning One Date on xAxis
- How to display Day and Date in Highcharts Column Graph using PHP
- Highcharts - data day sum one day ahead
- Highcharts setExtremes() does not display the correct interval for one day
- HighCharts - How can I turn off the points?
- Highcharts 3 cannot render more than 1000 points in one series
- Turning off animation in HighCharts globally
- HighCharts - two Y-axis, one with max value
- how do I get two highcharts on one page?
- Highcharts graph X-axis label for different date ranges
- json date format to Highcharts date format
- highcharts - chart names for multiple pie chart series in one chart
- Highcharts labels cut off
- Highcharts - change background color along specific date range
- Highcharts - Highlight / Shade date range
- Rails - convert date string into javascript date object for highcharts
- Populate Highcharts X-Axis With Dates Given a From And To Date
- Highcharts data label getting cut off
- highcharts - removing decimal places on Y axis with only one point
- Highcharts - time off by 1 hour
- Highcharts datetime starting on wrong day
- Stop HighCharts change transparency of another series on hover of one series
- Highcharts - Skip date in series
- Highcharts - Data label cut off
- Is it possible in highcharts to have 2 charts, sharing the same x-axis, but next to one another?
More Query from same tag
- PhantomJS PDF DPI scaling issues
- Using a highstock chart with stacked series
- Populate Highcharts series with data from AJAX/JSON
- Highchart multicolour areaspline
- Converting svg from Highcharts data into data points
- Having trouble to show highchart for each element
- Highcharts windrose with one series without gap
- How to get rid of Function calls are not supported in decorators in Angular aot compiling?
- Error on rendering Highstock date
- How can I maintain the Highcharts halo effect on pie chart after click and mouseOut?
- Highcharts erroneously inserting numbered extra categories in error
- HighCharts. Adding series to yAxis with id
- highchart x axis not showing correct date labels
- Is Gill sans supported for export?
- Centering a data label in Highcharts Bar Chart
- Map for Highmaps with England, Wales and Scotland etc
- highcharts transform json data with Date.UTC
- How to change the radius of the data point dots depending on the value/count in the data-yaxis-HIGHCHARTS
- Using Highcharts JS in native mobile application
- How do I make a Highcharts timeline where the labels don't overlap and none are hidden?
- How to expand same chart in the highcharts on bootstrap modal onclick a thumbnail chart in angular 6
- Highcharts column Point Click
- How to position the Highcharts.StockChart's rangeSelector zoom on the right?
- Bootstrap - Highcharts not showing
- How to Check and Uncheck all the Legend elements in HighCharts Linechart?
- highcharts gauge chart and the pane option
- nGradient effect with negative values on highcharts
- Dependency-Wheel item without connection
- How to proceed only after all onClick events finished?
- High charts Tool tip is not supporting in IE10 and IE8 and Mozilla with more data