gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

No config for client timezone #4

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by votinhthieugia Thursday Jan 05, 2012 at 04:54 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/24


Right now I see that the time is always GMT time. It's hard for me to convert time every time I look at the chart because my local time is GMT + 7. Is there a way to configure the timezone on client browser?

bf4 commented 10 years ago

Comment by JohnMurray Thursday Jan 12, 2012 at 21:23 GMT


Yes I agree with this. I personally have my server timezone set to UTC. For my particular needs, it would be nice if I could configure the timezone on the server and the time could be converted locally via JavaScript.

I work with a development team distributed across timezones and this would be REALLY useful. Thoughts?

bf4 commented 10 years ago

Comment by imajes Tuesday Jan 31, 2012 at 19:27 GMT


i'd be a big fan of this too... apologies for adding a +1, but i'd like to track it. :)

bf4 commented 10 years ago

Comment by kazjote Friday Feb 03, 2012 at 14:42 GMT


I think there might be a problem here.

FnordMetric aggregates data on per 'tick length' basis.

Let's say server has GMT as default time zone and we have a gauge 'visits' with tick 1 day.

  1. User enters our site on 2 Jan 01:00:00 GMT
  2. User enters our site on 2 Jan 10:00:00 GMT

Now gauge 'visits' is set to 2 for day 2 Jan. However, when I switch timezone in frontend to New York one I would expect the gauge 'visits':

It is not possible as the information about time of each visit is lost.

bf4 commented 10 years ago

Comment by JohnMurray Friday Feb 03, 2012 at 16:58 GMT


hmm... how unfortunate.

bf4 commented 10 years ago

Comment by hewo Thursday May 24, 2012 at 16:12 GMT


put this:

Highcharts.setOptions({
    global: {
        useUTC: false
    }
});

in your fnordmetrics.js and your graphs are displayed with local time.

Like commit 8eeedb0