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

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

* Small improvement
This commit is contained in:
Utkarsh Bhatnagar 2016-04-30 07:41:24 -07:00 committed by Torkel Ödegaard
parent cbefd8f8ae
commit f6d538bb98

View File

@ -184,6 +184,7 @@ function (angular, $, _, moment) {
p.formatDate = function(date, format) {
date = moment.isMoment(date) ? date : moment(date);
format = format || 'YYYY-MM-DD HH:mm:ss';
this.timezone = this.getTimezone();
return this.timezone === 'browser' ?
moment(date).format(format) :