在不同的时区想实现时钟同步【转】

解决方案1:使用TimeZone

解决方案2:使用setProperty

System.setProperty(“user.timezone”,”Asia/Shanghai”);


来源 https://blog.csdn.net/callmev6/article/details/80989647
原文地址:https://www.cnblogs.com/Annetree/p/13600592.html