I would like to get in my Blazor WASM app the time in the client computer (as displayed in the taskbar in Windows 11), which seems like it should be straightforward. However, I am getting a time that's +5 hours from my East Coast time, which seems to be UTC time. I have read a bunch of posts about this issue nut none have provided a solution that seems to work, including using DateTime.Now.ToLocalTime() which compiles and executes without providing the local time. I would think this is a very common need. Can you help me out?
↧