clemensw
7 years agoGuide
LiQL view_friendly_date of post_time
Dear Community, we are using a LiQL query like that: <#assign mostviewedMessages = restadmin("2.0", "/search?q=" + ("SELECT * FROM messages where conversation.style='blog' AND depth=0 ORDER BY metr...
- 7 years ago
Hi clemensw
increase the days in below option:
Admin > System > Date and Time > Number of days to use relative dates
Ex:1500Code:
<#assign query="SELECT * FROM messages where conversation.style='blog' AND depth=0 ORDER BY metrics.views DESC limit 5"/>
<#assign mostviewedMessages = restadmin("2.0", "/search?q=" +query?url).data.items/>
<#list mostviewedMessages as mostviewedMessage>
${mostviewedMessage.post_time_friendly}<br>
</#list>