Commit f6d538bb by Utkarsh Bhatnagar Committed by Torkel Ödegaard

Bug fix, match tooltip timezone to X-axis timezone (#4855)

* Bug fix, match tooltip timezone to X-axis timezone

* Small improvement
parent cbefd8f8
...@@ -184,6 +184,7 @@ function (angular, $, _, moment) { ...@@ -184,6 +184,7 @@ function (angular, $, _, moment) {
p.formatDate = function(date, format) { p.formatDate = function(date, format) {
date = moment.isMoment(date) ? date : moment(date); date = moment.isMoment(date) ? date : moment(date);
format = format || 'YYYY-MM-DD HH:mm:ss'; format = format || 'YYYY-MM-DD HH:mm:ss';
this.timezone = this.getTimezone();
return this.timezone === 'browser' ? return this.timezone === 'browser' ?
moment(date).format(format) : moment(date).format(format) :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment