added header message containing information about the user the mod mail thread has been opened for

This commit is contained in:
Sheldan
2020-05-07 00:26:19 +02:00
parent cb1a14e46b
commit 6cf69af438
9 changed files with 61 additions and 13 deletions

View File

@@ -31,9 +31,9 @@ public class InstantMethod implements TemplateMethodModelEx {
}
String formatString = ((SimpleScalar) arguments.get(1)).getAsString();
Instant duration = (Instant) wrappedObject;
Instant timeStamp = (Instant) wrappedObject;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(formatString)
.withZone(ZoneId.systemDefault());
return formatter.format(duration);
return formatter.format(timeStamp);
}
}