Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
phansier committed Jan 30, 2018
1 parent f8a2b01 commit fb43465
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/com/github/mobile/api/model/Milestone.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.util.Date;

public class Milestone implements Serializable {
public static final String MS_STATE_OPEN = "open";
public long id;

public int number;
Expand Down Expand Up @@ -46,7 +47,7 @@ public class Milestone implements Serializable {
private String url;

public Milestone() {
state = "open";
state = MS_STATE_OPEN;
}

public Milestone(org.eclipse.egit.github.core.Milestone milestone) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,10 @@ private void updateDate(Date date) {
milestone.due_on = null;
} else {
etDate.setVisibility(View.VISIBLE);
mDate = date;
mDate.setTime(mDate.getTime() + 8 * 3600 * 1000);
Calendar c = Calendar.getInstance();
c.setTime(date);
c.add(Calendar.HOUR, 8);
mDate = c.getTime();
SimpleDateFormat sd = new SimpleDateFormat(getApplicationContext().getString(R.string.ms_date_format));
String fdate = sd.format(date);
etDate.setText(fdate);
Expand Down

0 comments on commit fb43465

Please sign in to comment.