Skip to content
Snippets Groups Projects

Fix date not working on all platforms

Merged William Roberts requested to merge wroberts/MetObsSite:develop into develop
4 files
+ 25
40
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -5,9 +5,7 @@ var _ = require('underscore');
function processData(dataObj) {
// plotly doesn't support the 'T' date/time separator or the 'Z' at the end
// https://help.plot.ly/date-format-and-time-series/#step-2-entering-dates-and-times-in-plotly-s-grid
var dates = _.map(dataObj.timestamps, function(date){return date.replace("T",' ').substring(0, date.length-1)});
var dates = _.map(dataObj.timestamps, function(date){return date});
var allData = {
dates: dates,
};
Loading