collective / collective.documentviewer

https://pypi.org/project/collective.documentviewer
21 stars 22 forks source link

It not refresh if i modify a file. #41

Closed ifeng2015 closed 11 years ago

ifeng2015 commented 11 years ago

Hello,I install Documentviewer on plone4.3.If i upload a new file(.doc .pdf .ppt),it will convert correctly. But if i replace a file(.doc .pd .ppt),documentviewer will not convert it. I have choosed "Auto Convert" .

thanks

vangheem commented 11 years ago

Does manually clicking the "Document Viewer Convert" still work?

Document viewer tries to take a hash of the file and compare it on every edit so it knows if it has to convert or not. Perhaps there is an issue with that process or we're getting a hash hit? That'd seem unlikely though.

Do you have md5 or md5sum installed? Do you get any warnings on startup in the log?

ifeng2015 commented 11 years ago

Yes.If i manually click "Document Viewer Convert" it works! There have md5sum installed in my server(centos 6.4_64)

I found out that the problem was caused by TimeZone in plone. Time zone in my centos is GMT+8 but it's seems plone didn't use GMT+8. i base.cfg file i add environment-vars = TZ Etc/GMT+8

then ,everything goes well.thanks for your help.