Skip to content

Commit b6f72e4

Browse files
Apply suggestions from code review
Co-authored-by: Stian Sandvold <stian@dhis2.org>
1 parent 9109285 commit b6f72e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/utils/ContextUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public static String getEtag(Date lastModified, UserDetails user) {
319319
}
320320

321321
String value =
322-
String.format("%s-%s", DateUtils.toLongDateWithMillis(lastModified), user.getUid());
322+
String.format("%d-%s", lastModified.getTime(), user.getUid());
323323

324324
return HashUtils.hashMD5(value.getBytes());
325325
}

0 commit comments

Comments
 (0)