I'm using a Query of Queries to output list of files in a folder with the filter DateLastModified DESC
. It works fine locally, but not on the remote site.
<!---get list of files in directory to link to for lessons--->
<CFDIRECTORY NAME="myfiles"
DIRECTORY="#ExpandPath('uploaded_files')#"
FILTER="*.*"
SORT="DateLastModified DESC">
<cfquery dbtype="query" name="todays_files">
SELECT *
FROM myfiles
WHERE #DatePart("d", myfiles.DateLastModified)# = #DatePart("d", lessons.lesson_date)#
</cfquery>
<p>
<cfoutput>
<a href="uploaded_files/#todays_files.Name#"
target="_blank">#todays_files.Name#</a><br />
</cfoutput>
</p>
Could this be due to time differences? I'm in the Czech Republic and my site is hosted in the USA.
Thanks for your input.
test.pdf
– Shalinko Mar 05 '14 at 17:13