Javascript Date() give wrong date off by one hour

后端 未结 4 831
迷失自我
迷失自我 2020-12-03 21:33

I send this date from my controller in java (Spring-MVC) the type in mysql is datetime

@Temporal(TemporalType.TIMESTAM         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 21:50

    I think maybe this is a Daylight Saving Time problem. You can check your client's timezone, and your server's timezone. (web server or SQL Server)

提交回复
热议问题