Tests still pass
Changed a file in /usr/share/applications, it would still notice that
Details
Details
- Reviewers
kde-frameworks-devel dfaure
Diff Detail
Diff Detail
- Repository
- R309 KService
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
Please use arc diff to upload patches so that context is available.
m_now isn't used to detect changes, but to detect files "in the future".
With your changes, the line if (mtime > m_now) will have to convert mtime to UTC first. It seems to me that you traded away one timezone conversion for thousands.
Did you measure this?
What we really need is QFileInfo::lastModifiedUtc(), assuming of course it would be able to do that without conversion...