Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
fixed the top api not 24 hour
Browse files Browse the repository at this point in the history
fixed the top api not 24 hour
  • Loading branch information
徐长龙 committed Jun 29, 2017
1 parent c08d600 commit df2b9bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static long getHourTime(Long timestamp) {
public static long getHour(Long timestamp) {
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(timestamp * 1000);
return (cal.get(Calendar.HOUR));
return (cal.get(Calendar.HOUR_OF_DAY));
}

//获取当前时间
Expand Down

0 comments on commit df2b9bb

Please sign in to comment.