Giter Club home page Giter Club logo

Comments (14)

davydovanton avatar davydovanton commented on June 13, 2024

@jhollinger hello, thanks for report! ❤️
Could you call this command and send me output of this?

redis-cli hgetall sidekiq:statistic

from sidekiq-statistic.

jhollinger avatar jhollinger commented on June 13, 2024

(empty list or set)

from sidekiq-statistic.

jhollinger avatar jhollinger commented on June 13, 2024

Oh that's b/c we're using a sidekiq namespace, so it's sidekiq:sidekiq:statistic. We have HIPAA concerns, so I can't send it to you. Could you tell me what to look for?

from sidekiq-statistic.

davydovanton avatar davydovanton commented on June 13, 2024

@jhollinger, I want to see what string you are use in Time.parse in #formate_date helper method. This error happened when you replace month and day in parsed string.

Thats why I want to ask you show me what contain "2015-11-23:<WorkerName>:last_time" key in redis statistic hash.

from sidekiq-statistic.

jhollinger avatar jhollinger commented on June 13, 2024

Got it. Here's a sampling of last_time values. They're obviously in the American date format. Are they expected to be in the more standard one?

11/17/2015 0750 UTC
11/15/2015 0500 UTC
11/16/2015 0500 UTC
11/22/2015 2342 UTC
11/15/2015 2300 UTC
11/21/2015 2256 UTC
11/15/2015 0500 UTC
11/23/2015 2000 UTC

from sidekiq-statistic.

davydovanton avatar davydovanton commented on June 13, 2024

Sorry, I use this method for formate date in UTC. I think you need to use this method too.

from sidekiq-statistic.

jhollinger avatar jhollinger commented on June 13, 2024

Where is it that I would need to use that method?

from sidekiq-statistic.

jhollinger avatar jhollinger commented on June 13, 2024

ping

from sidekiq-statistic.

davydovanton avatar davydovanton commented on June 13, 2024

pong.
Please save data string in UTC format. You have a problem in parsing your data string in custom format.

from sidekiq-statistic.

jhollinger avatar jhollinger commented on June 13, 2024

Right, I mean what "data string?"

from sidekiq-statistic.

mperham avatar mperham commented on June 13, 2024

ProTip™: it's easy to store dates in a numeric format Time.now.to_i and then use Time.at(number) to make the timestamp when you need to display it. Numeric means you don't need to worry about string formats or timezones.

from sidekiq-statistic.

jhollinger avatar jhollinger commented on June 13, 2024

+1

from sidekiq-statistic.

davydovanton avatar davydovanton commented on June 13, 2024

@mperham thanks! I think I need to rewrite code 😬

from sidekiq-statistic.

davydovanton avatar davydovanton commented on June 13, 2024

Fixed it by @rbUUbr’s PR. Will close the issue

from sidekiq-statistic.

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.