pretty high lenght of time since installation or upgrade
See original GitHub issueSummary
| | | | 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:
- Created a year ago
- Comments:12
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@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!