Skip to content

Commit

Permalink
KYLIN-3583 Cast to long before multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne1c committed Sep 25, 2018
1 parent fc9444f commit 3c96469
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -71,7 +71,7 @@ public RecordEventTimeDetail(long timeStamp) {
this.second = calendar.get(Calendar.SECOND);

long timeStampForWeekBegin = timeStamp;
timeStampForWeekBegin -= 3600000 * 24 * (calendar.get(Calendar.DAY_OF_WEEK) - 1);
timeStampForWeekBegin -= 3600000L * 24 * (calendar.get(Calendar.DAY_OF_WEEK) - 1);
calendar.setTimeInMillis(timeStampForWeekBegin);
this.week_begin_date = dateFormat.format(calendar.getTime());
}
Expand Down

0 comments on commit 3c96469

Please sign in to comment.