Skip to content

Commit 971707d

Browse files
author
chengyitian
committed
AJ-528: fix countDateMilliseconds Calendar type error;
1 parent f03619b commit 971707d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/com/xxdb/data/Utils.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,7 @@ public static int countMilliseconds(Calendar value) {
284284
}
285285

286286
public static long countDateMilliseconds(Calendar value) {
287-
return countMilliseconds(value.get(Calendar.YEAR),
288-
value.get(Calendar.MONTH)+1,
289-
value.get(Calendar.DAY_OF_MONTH),
290-
value.get(Calendar.HOUR_OF_DAY),
291-
value.get(Calendar.MINUTE),
292-
value.get(Calendar.SECOND),
293-
value.get(Calendar.MILLISECOND));
287+
return value.getTimeInMillis();
294288
}
295289

296290
public static int countMilliseconds(int hour, int minute, int second, int millisecond){

0 commit comments

Comments
 (0)