Created
January 25, 2017 20:20
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#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