Skip to content

Commit 0bbe585

Browse files
updated to use official iso formatting
1 parent 2d978b2 commit 0bbe585

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

snprc_ehr/src/org/labkey/snprc_ehr/domain/AnimalGroup.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ public void setSortOrder(String sortOrder)
113113
public JSONObject toJSON()
114114
{
115115
JSONObject json = new JSONObject(this);
116-
json.put("date", date == null ? null : DateUtil.toISO(date).substring(0, 10));
117-
json.put("endDate", endDate == null ? null : DateUtil.toISO(endDate).substring(0, 10));
116+
json.put("date", DateUtil.formatIsoDate(date));
117+
json.put("endDate", DateUtil.formatIsoDate(endDate));
118118
return json;
119119
}
120120
}

0 commit comments

Comments
 (0)