Git Product home page Git Product logo

Comments (5)

JohnMurray avatar JohnMurray commented on May 1, 2024

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?

from clip.

imajes avatar imajes commented on May 1, 2024

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

from clip.

kazjote avatar kazjote commented on May 1, 2024

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':

  • for day 1 Jan to be set to 1
  • for day 2 Jan to be set to 1

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

from clip.

JohnMurray avatar JohnMurray commented on May 1, 2024

hmm... how unfortunate.

from clip.

hewo avatar hewo commented on May 1, 2024

put this:

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

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

Like commit 8eeedb0

from clip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.