Skip to content

Commit 37de728

Browse files
author
371718330@qq.com
committed
增加获取当前手机对应的系统时区
1 parent 640eff4 commit 37de728

File tree

1 file changed

+8
-0
lines changed
  • CommonUtil/src/main/java/com/jingewenku/abrahamcaijin/commonutil

1 file changed

+8
-0
lines changed

CommonUtil/src/main/java/com/jingewenku/abrahamcaijin/commonutil/AppDateMgr.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ public static TimeZone getBeijingTimeZone(){
4646
return TimeZone.getTimeZone("GMT+8:00");
4747
}
4848

49+
/**
50+
* 获取当前手机对应的系统时区
51+
*
52+
*/
53+
public static TimeZone getPhoneTimeZone()
54+
{
55+
return TimeZone.getDefault();
56+
}
4957

5058

5159
/**

0 commit comments

Comments
 (0)