damienvanrobaeys / About_my_device

About my device: A systray tool for that displays device information and run action like send logs or sync device
34 stars 6 forks source link

Last Reboot time and FastBoot #13

Open hotzenwalder opened 1 year ago

hotzenwalder commented 1 year ago

I noticed in your script you use some calculations for the last reboot time. I believe that in another script of yours you take the FastBoot into consideration which gives a more reliable last reboot time. I changed some of the code in that script and added it to about_my_device.ps1

I've attached a file with the changes I made because adding it as code did not work ChangedRebootPart.txt

I also translated some of the parts to Dutch, but you get the parts that are changed I think. I'm a noob at coding so you might have to optimize the code.

Also... when you view the value of $last_boot it usually returns something like this 'zaterdag 5 november 2022 18:55:05'. This is translated in the systray app to a shortened date in the wrong date/time format: 11/05/2022 18:55:05 (first should be the date, second the month).

I've searched through the code, but I could not find the part where it is translated into that format. Might be in some xaml maybe? Is this something that can be changed so we see the full date like 'zaterdag 5 november 2022 18:55:05'

Keep up the good work. Hope you can find some time to add some more stuff and a better method for translating into different languages. I had to go through the code and replace english and sometimes french with dutch, but it works for now.