microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.86k stars 6.59k forks source link

Awake customTrayTimes doesn't work properly for 24 hours or more #35848

Open mselmanyildirim opened 3 weeks ago

mselmanyildirim commented 3 weeks ago

Microsoft PowerToys version

0.86.0

Installation method

PowerToys auto-update

Running as admin

None

Area(s) with issue?

Awake

Steps to reproduce

I manually edit customTrayTimes field of settings.json of Awake tool.
Works great for values smaller than 86400 seconds. When I use the value 86400 seconds (which is 24 hours), it recognizes as 0 (zero), thus doesn't get activate. When I use a value larger than 86400 seconds, it recognizes as "value modulus 86400". If this is not the intended behavior (it is not documented so) values 86400 or more doesn't work properly.

✔️ Expected Behavior

If I edit customTrayTimes in settings.json to have the value 86400, it should make PC stay awake for 24 hours.

❌ Actual Behavior

86400 is interpreted as 0 (zero) so it doesn't get activated.

Other Software

No response

dend commented 4 days ago

Can reproduce this. Investigating the issue.

dend commented 4 days ago

Will be fixed with #36049.