mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Use ms rather than second precision
This commit is contained in:
@@ -275,12 +275,7 @@ export default class InfluxDatasource {
|
||||
}
|
||||
date = dateMath.parse(date, roundUp);
|
||||
}
|
||||
|
||||
var secs = date.valueOf() / 1000;
|
||||
if (roundUp) {
|
||||
secs += 1;
|
||||
}
|
||||
return secs.toFixed(0) + 's';
|
||||
return date.valueOf() + 'ms';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user