更新时间:2023-02-26 21:57:28
你试过用TimeZone.getDefault()
:
大多数应用程序将使用返回基于 TimeZone 的 TimeZone.getDefault()在程序运行的时区.
Most applications will use TimeZone.getDefault() which returns a TimeZone based on the time zone where the program is running.
参考:http://developer.android.com/reference/java/util/TimeZone.html