question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using daysInHours but hours won't go over 24

See original GitHub issue

Hey I tried to show countdown for approx 2 days like this for example 42:50:31 but seems like the hours part can only show it to 24 so if the hours value go past 24 it will fill days value

is this expected? since props daysInHours supposed to count days as hours

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ndresxcommented, Oct 11, 2020

Hi @xi1570-krupeshanadkat, thanks for bringing this up again. I’ve checked your example and the problem is that not the formatted object (which is also part of the renderer function props) values are used, but the “raw” ones that basically ignore all formatting options.

Here the working example: https://codesandbox.io/s/react-countdown-days-to-hours-forked-6lcku?file=/src/App.js

Although it’s briefly mentioned in the docs, it’s not part of the props’ representation there yet, thanks again!

1reaction
xi1570-krupeshanadkatcommented, Oct 10, 2020

I see, I was missing the formatted object wrapping. Really appreciate your quick response with solution. Thanks for helping out 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Can't calculate the difference between 2 days in hours
Closed 8 years ago. I need to check if some date and now arent' different more than in 18 hours: dt = parser.parse(" ......
Read more >
How to display time over 24 hours in Excel
Excel doesn't display hours over 24 by default. But, if you change one option in the number format, you can display hours over...
Read more >
Calculating the difference in network days in hours (excluding ...
Hi, I am trying to calculate the difference in hours between two dates with times. I want the difference to only include business...
Read more >
react-countdown - npm
When set to true , the countdown timer won't stop when hitting 0, but instead becomes negative and continues to run unless paused/stopped....
Read more >
Need help formatting axis for duration - Bokeh Discourse
It works to some extent in the sence it show days in hours, but it is ... days in hours; when duration is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found