I have many sites on Pantheon and they are all using IMCE for file management. Unfortunately, they are all displaying the same file date as the current date and time that I'm reviewing them. This is the same for every site installation on Pantheon. The date via SFTP is correct, so it appears that IMCE is not playing nice with Pantheon. Has anyone else experienced this and can anyone provide a solution?


ufku’s picture

Status: Active » Closed (works as designed)

IMCE uses PHP's filemtime() to get file dates. Make sure this function returns correct dates.
One can also override IMCE's directory scanning function by providing a custom callback name for 'imce_custom_scan' variable. variable_set('imce_custom_scan', 'MY_CUSTOM_SCAN');

erok415’s picture

Thanks for the response. I'm not sure I follow you. Are you saying to apply a patch or to place an over-ride in the template.php file? If you can, please send back the entire code structure you are referring to so that I can copy and paste to see if your solution will work.