When using ToLocalTime(), how is local time determined? Is local time from the server or the client? My assumption would be the server running the application.
ToLocalTime(), in this case, executes on the server. Therefore the time is evaluated on the server, and it'll return the server time to the client.
ToLocalTime()