Avatar
0
VuVo Beginner
VuVo Beginner
Sai thời gian khi nhận time từ json ...
khi Em nhận data từ json model "actionTime": "2022-12-27 10:50:52" dưới code em dùng: @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date actionTime; thì nó trả về sai giờ : Tue Dec 27 17:41:25 ICT 2022 khi em debug thì nó trả như vậy. Sau khi em parse bên thymleaf ${#dates.format(data.actionTime, ‘dd/MM/yyyy HH:mm:ss’)} thì nó ra 2022-12-27 05:50:52 chỉ ...
Answer