Open AmauryLiet opened 3 years ago
@AmauryLiet, I'm facing the issue with modificationDate in the android 10 version and above.
Is there any solutions to resolve this issue...
@priyankaThummala I couldn't find any workaround unfortunately... From my research, it seems to be an android issue rather than the lib
I also tried https://stackoverflow.com/a/48431255/6529098 but without luck. It could be because a new file is created specifically for the application? (it seems plausible looking at the android path)
Thank you for your response @AmauryLiet Please mention here if you found any solution
I've found a solution!
export const getDate = e => {
return moment.unix(e / 1000).format('MMMM Do YYYY, h:mm:ss a');
};
@priyankaThummala , @AmauryLiet
@MBrodo Why does that solve the problem? I don't think it could solve the problem.
Version
Tell us which versions you are using:
Platform
Expected behaviour
Values of
modificationDate
returned byopenPicker
&openCamera
gives the timestamp when the photo was created/last editedActual behaviour
It systematically returns the current timestamp, even for older images
Steps to reproduce
openPicker
on an android real deviceI didn't have a chance yet to look into the implementation unfortunately
Thanks for your work!