How is local determined in ToLocalTime()

前端 未结 4 608
天命终不由人
天命终不由人 2021-02-02 09:29

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.

4条回答
  •  孤城傲影
    2021-02-02 10:00

    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.

提交回复
热议问题