Skip to content

Commit 98c5d42

Browse files
committed
see 12/06 log
1 parent caffcb5 commit 98c5d42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utilcode/src/main/java/com/blankj/utilcode/utils/TimeUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private TimeUtils() {
189189
* @return 时间字符串
190190
*/
191191
public static String millis2String(long millis) {
192-
return millis2String(millis, DEFAULT_PATTERN);
192+
return new SimpleDateFormat(DEFAULT_PATTERN, Locale.getDefault()).format(new Date(millis));
193193
}
194194

195195
/**
@@ -1082,8 +1082,8 @@ public static String getChineseZodiac(int year) {
10821082
return CHINESE_ZODIAC[year % 12];
10831083
}
10841084

1085-
private static final String[] ZODIAC = {"水瓶座", "双鱼座", "白羊座", "金牛座", "双子座", "巨蟹座", "狮子座", "处女座", "天秤座", "天蝎座", "射手座", "魔羯座"};
1086-
private static final int[] ZODIAC_FLAGS = {20, 19, 21, 21, 21, 22, 23, 23, 23, 24, 23, 22};
1085+
private static final String[] ZODIAC = {"水瓶座", "双鱼座", "白羊座", "金牛座", "双子座", "巨蟹座", "狮子座", "处女座", "天秤座", "天蝎座", "射手座", "魔羯座"};
1086+
private static final int[] ZODIAC_FLAGS = {20, 19, 21, 21, 21, 22, 23, 23, 23, 24, 23, 22};
10871087

10881088
/**
10891089
* 获取星座

0 commit comments

Comments
 (0)