Skip to content

Commit 9ce3ff9

Browse files
author
chengyitian
committed
AJ-528: revert code;
1 parent 915f67b commit 9ce3ff9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/com/xxdb/data/Utils.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,13 @@ public static int countMilliseconds(Calendar value) {
287287
}
288288

289289
public static long countDateMilliseconds(Calendar value) {
290-
return value.getTimeInMillis();
290+
return countMilliseconds(value.get(Calendar.YEAR),
291+
value.get(Calendar.MONTH)+1,
292+
value.get(Calendar.DAY_OF_MONTH),
293+
value.get(Calendar.HOUR_OF_DAY),
294+
value.get(Calendar.MINUTE),
295+
value.get(Calendar.SECOND),
296+
value.get(Calendar.MILLISECOND));
291297
}
292298

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

0 commit comments

Comments
 (0)