Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

Commit 59ca378

Browse files
author
Edmundo Alvarez
committed
Apply user timezone to graphs also when using utc
1 parent 74241a5 commit 59ca378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/javascripts/Rickshaw.Fixtures.Graylog2Time.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Rickshaw.Fixtures.Graylog2Time = function(tzOffset) {
6969
this.formatDate = function(d) {
7070
var dateMoment = moment(d);
7171

72-
if (tzOffset) {
72+
if (tzOffset != null) {
7373
dateMoment = dateMoment.zone(tzOffset);
7474
}
7575

@@ -79,7 +79,7 @@ Rickshaw.Fixtures.Graylog2Time = function(tzOffset) {
7979
this.formatTime = function(d) {
8080
var dateMoment = moment(d);
8181

82-
if (tzOffset) {
82+
if (tzOffset!= null) {
8383
dateMoment = dateMoment.zone(tzOffset);
8484
}
8585

0 commit comments

Comments
 (0)