Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save planetsizebrain/737ca5f781560bb79ebb9bc34141efe2 to your computer and use it in GitHub Desktop.
Save planetsizebrain/737ca5f781560bb79ebb9bc34141efe2 to your computer and use it in GitHub Desktop.
A simple Liferay Freemarker template that shows how the build-in datetime formatting works together with processing settings for locale and timezone
<#setting time_zone=timeZone.ID>
<#setting locale=locale.toString()>
<#setting datetime_format="MMM d, HH':'mm">
<ul>
<#list entries as entry>
<li><li>${entry.title} - ${entry.modifiedDate?datetime}</li></li>
</#list>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment