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.

pretty high lenght of time since installation or upgrade

See original GitHub issue

Summary

| | | | RN |0.68.2 | | Version | 9.0.9 | | Affected OS | Android | | OS Version | any from 8 to 11 |

Current behavior

I calculate the time of my app since the last installation or upgrade (same strange behavior) The time is pretty high : I get 19164 days for an app that is tested since the 07th of June of this year .

Expected behavior

I would expect a time of 23-7 = 16 days

The Code :

useEffect(() => {
    //depuis combien de secondes est-ce installé ?
    const depuisInstall = async () => {
      try {
        let secinstall = await DeviceInfo.getLastUpdateTime();
        let jours = Math.floor(secinstall / (3600000 * 24));
        console.log('en jours:', jours); // il y a un pb !
        return jours; //le retour ne marche pas ..{"_U": 0, "_V": 0, "_W": null, "_X": null}
      } catch (error) {
        console.log(error.message);
      }
    };
    depuisInstall();
  }, []);

Maybe I misunderstood the command ? thanks a lot for this lib !

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
mikehardycommented, Jun 26, 2022

Thanks for the extra insight @Productivix - I’ve carried that over to my PR and hopefully we get a docs update in that is helpful to the most people at once. Cheers

1reaction
mikehardycommented, Jun 24, 2022

@Productivix I proposed a change to the developer docs that restricts the range of JDKs from 11 to 17 inclusive instead of the open-ended “…or newer” since JDK18 does not work. Hopefully that will help others avoid the trap. Good luck with your project!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Long Does Windows 11/10 Update Take 2022 ... - EaseUS
It may take between 10 and 20 minutes to update Windows 10 on a modern PC with solid-state storage. The installation process may...
Read more >
Here's How Long the macOS Monterey 12.6.2 Update Takes
If you're moving up from macOS Monterey 12.6.1, your installation should take in and around 10 minutes to complete. It took 10 minutes...
Read more >
How Long Does It Take to Download/Install/Update Windows ...
The download time depends on two main variables – the Internet speed and the size of the download file. To get a Windows...
Read more >
8 Warning Signs It's Time to Upgrade Your Android Phone
When you buy a new Android smartphone, you expect it to last. A well-made phone should be useful for several years, at least....
Read more >
Updating Your Smartphone Operating System
Delete apps you no longer use: A new OS may need a significant amount of your device's memory. Clear out apps that are...
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