Hiện nay mọi người thường đặt time zone bằng cách nào trong Java ạ? Ví dụ ở trang stackask này em time zone bị sai ạ
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Đúng vậy, stackask đang để timezone là GMT+0. Trong java thì em có thể trả về timestamp (kiểu long) cho client rồi dùng các thư viện kiểu moment để format là nó sẽ đúng với time zone của em.
đúng rồi, em thấy timezone ở stackask sai, sao a không set lại. có phải do OS timezone LÀ GMT+0 , backend lấy timezone theo OS
Không em ạ, tại vì để cố định là GMT+0 đó em ạ. Để anh xem xét update nhé.