mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(preferences): got timezone option to work on org and profile level, as well as dashboard
This commit is contained in:
@@ -8,7 +8,7 @@ export class TableRenderer {
|
||||
formaters: any[];
|
||||
colorState: any;
|
||||
|
||||
constructor(private panel, private table, private timezone) {
|
||||
constructor(private panel, private table, private isUtc) {
|
||||
this.formaters = [];
|
||||
this.colorState = {};
|
||||
}
|
||||
@@ -45,7 +45,7 @@ export class TableRenderer {
|
||||
return v => {
|
||||
if (_.isArray(v)) { v = v[0]; }
|
||||
var date = moment(v);
|
||||
if (this.timezone === 'utc') {
|
||||
if (this.isUtc) {
|
||||
date = date.utc();
|
||||
}
|
||||
return date.format(style.dateFormat);
|
||||
|
||||
Reference in New Issue
Block a user