Commit 1e1045b6 authored by Matija Obreza's avatar Matija Obreza
Browse files

prettyTime null check

parent 0beb1829
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<%@ attribute name="locale" required="true" type="java.util.Locale" %> <%@ attribute name="locale" required="true" type="java.util.Locale" %>
<% <%
PrettyTime p = new PrettyTime(locale); PrettyTime p = new PrettyTime(locale);
%><%= p.format(date) %><% if (date != null) {
%><%= p.format(date) %> <small><fmt:formatDate value="${date}" /></small> <%
%> <small><fmt:formatDate value="${date}" /></small> }
\ No newline at end of file %>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment