How do I avoid getting a "std::exception" Exception message is: could not convert calendar time to local time when I use dir and there is a file with a future date?
Show older comments
I get the error "std::exception" Exception message is: could not convert calendar time to local time when I use the dir command on a directory in which there is a file on disk with a future date (e.g. 27 July 2079). The file is a JPG image from a digital camera whose date had not been set correctly. I don't want to have to manually search all folders and files and change manually change the date.
Accepted Answer
More Answers (1)
LEI
on 8 Apr 2020
0 votes
Hello,
I've got the same question when copying a matlab m file to another computer.
It is easy to solve: open the file with any windows application, ex. note, and save it. Then the "last modified date" becomes the current date and you can then open it with Matlab.
Lei
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!