Use unix epoch for Graphite from/to for absolute time ranges, #536

This commit is contained in:
Torkel Ödegaard 2014-06-25 10:09:19 -04:00
parent 32b11b104f
commit c925014bb5
2 changed files with 6 additions and 9 deletions

View File

@ -1,3 +1,8 @@
vNext
**Changes**
- Use unix epoch for Graphite from/to for absolute time ranges (Closes #536)
# 1.6.1 (2014-06-24)
**New features or improvements**

View File

@ -104,15 +104,7 @@ function (angular, _, $, config, kbn, moment) {
}
}
if (dashboard.current.timezone === 'browser') {
date = date.local();
}
if (config.timezoneOffset) {
date = date.zone(config.timezoneOffset);
}
return date.format('HH:mm_YYYYMMDD');
return date.unix();
};
GraphiteDatasource.prototype.metricFindQuery = function(filterSrv, query) {