I got this weird thing on my cordova project. After I click capture, the recorded image is saved on my phone, but it appears at the bottom of my image gallery. Then my saved date was 01/01/1970 07:30.

My question is how to change date to date so that I capture the image? And why did this happen?
This is my source code.
function capturePhoto() {
navigator.camera.getPicture(onPhotoDataSuccess, onFail, {
quality: 50,
destinationType: destinationType.FILE_URI,
saveToPhotoAlbum: true,
correctOrientation: true
});
}
Cordova Plugin: https://github.com/apache/cordova-plugin-camera
PS: I am currently using Samsung S4.
user3398731
source
share