Cordova plugin camera. Why does my image snapshot appear at the bottom of my gallery?

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.

enter image description here

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.

+4
source share

Source: https://habr.com/ru/post/1531509/


All Articles