BradR
11 years agoKhoros Alumni (Retired)
Finding messages edited over seven days ago
I'm trying to write what seems to be a simple little block of code, but I'm stumbling over how to manage the test in the #if block below.
<#assign messages = restadmin("/posts/recent?moderation.scope=unmoderated&visibility.scope=moderator").messages.message />
<#list messages as message>
	<#assign editDate = message.last_edit_time />
	<#if editDateIsOverSevenDaysAgo>
		<#-- DoSomething -->
	</#if>
</#list>
I'm kind of stuck because last_edit_time returns as a string and I'm not able to convert it to something math friendly, nor am I able to identify any other way to get at this value. Any thoughts?