Date date;
if (list.size() > 1) {
String dateTimeParameter = isSubst ? list.get(1) : parseTrim(list.get(1), model);
try {
date = new StringToTime(dateTimeParameter);
} catch (StringToTimeException e) {
return "<span class=\"error\">Error: invalid time</span>";
}
} else {
date = model.getCurrentTimeStamp();