Moved date/time formatters to utils class

This commit is contained in:
Erik C. Thauvin 2023-03-21 07:21:24 -07:00
parent 05c1bd3f2a
commit 5ea5727a4a
15 changed files with 66 additions and 48 deletions

View file

@ -41,6 +41,10 @@ public class Lowercase implements ValueRenderer {
*/
@Override
public String render(Template template, String valueId, String differentiator) {
return template.getValueOrAttribute(differentiator).toLowerCase(Localization.getLocale());
var value = template.getValueOrAttribute(differentiator);
if (value == null || value.isBlank()) {
return value;
}
return value.toLowerCase(Localization.getLocale());
}
}