Github user DanielFreiburger commented on the pull request:
https://github.com/apache/cordova-plugin-file/pull/39#issuecomment-44406214
In File.js always "lastModifiedDate" is used,
in Metadata.js always "modificationTime" is used
but there is no correlation between these two.
So one of the two must be wrong.
After creating a correlation between the two by changing Metadata.js line
29 from:
this.modificationTime = new Date(metadata.modificationTime);
to
this.modificationTime = new Date(metadata.lastModifiedDate);
everything is fine.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---