Skip to content

Commit

Permalink
History: Use TBR start time instead of end time
Browse files Browse the repository at this point in the history
  • Loading branch information
TebbeUbben committed Mar 22, 2018
1 parent 8acc379 commit f247e73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
public void onBindViewHolder(ViewHolder holder, EndOfTBR entry, int position) {
holder.amount.setText(HTMLUtil.getHTML(R.string.history_tbr_amount,
entry.getAmount(), UnitFormatter.formatDuration(entry.getDuration())));
holder.dateTime.setText(new SimpleDateFormat(holder.dateTime.getResources().getString(R.string.history_date_time_formatter)).format(entry.getDateTime()));
holder.dateTime.setText(new SimpleDateFormat(holder.dateTime.getResources().getString(R.string.history_date_time_formatter)).format(entry.getStartTime()));
}

public static class ViewHolder extends RecyclerView.ViewHolder {
Expand Down

0 comments on commit f247e73

Please sign in to comment.