Reputation: 10929
We have made an electron app where the user adds some files to our S3 bucket. If the date & time of the computer is incorrect then S3 upload fails. We would like to tell the user how to trouble shoot. Is it possible to launch the windows date time settings from node so that we can make it easier for the end user?
Upvotes: 2
Views: 1357
Reputation: 8186
In Windows 10 you might want to show the new Windows settings app instead. You can do this by opening the correct URL.
So to open the Date/Time setting you would use the following code:
const { shell } = require('electron')
shell.openExternal('ms-settings:dateandtime');
Upvotes: 1