Technology Tales

Adventures in consumer and enterprise technology

Restoring photo dates with ExifTool after an Olympus camera loses its settings following a complete battery discharge

Published on 24th November 2025 Estimated Reading Time: 3 minutes

Here is the story behind what I am sharing here. My Olympus OM-D E-M10 II had been left aside for long enough to allow its battery to discharge fully. That also had the effect of causing it to lose its date and time settings. Then, I recharged the battery and went about using it without checking on those date and time settings. The result was a set of photos with a capture date and time of 1970-01-01T00:00 (midnight on New Year's Day in 1970!).

This was noticed when I loaded them onto my computer for appraisal with Lightroom. Thankfully, this had not gone on for too long, so I could work out the dates on which the images had been made. Thus, I could use ExifTool to update the capture dates while leaving the times alone. A command like the following will accomplish this while overwriting the images (the originals were retained elsewhere).

exiftool -overwrite_original \
-DateTimeOriginal='2025:06:02 ${DateTimeOriginal;s/^.* //}' \
-CreateDate='2025:06:02 ${CreateDate;s/^.* //}' \
-ModifyDate='2025:06:02 ${ModifyDate;s/^.* //}' \
*.ORF

The above command updates the original date, the capture date and the modified date. In practice, I only set two of these, leaving aside the modified date. Omitting the -overwrite_original switch would cause the creation of backup files, should that be what you require. Some think that specifying the *.ORF wildcard search is not desirable, preferring the following instead:

exiftool -overwrite_original \
-DateTimeOriginal='2025:06:02 ${DateTimeOriginal;s/^.* //}' \
-ext orf .

It is the -ext switch that picks up the ORF extension while . refers to the folder in which you are located in your shell session, and you can define your own path in the place of the dot if that is what is needed. Also, using -ext orf -ext dng will allow you to work with more than one file type at a time, a handy thing when more than one is found in the same directory, not that I organise my files like that.

With the date metadata fixed, removing the affected photos from Lightroom and reimporting them brought in the altered metadata. In the future, I will pay more attention to the Y/M/D display on the camera when it starts up, now that I realise what the display is trying to tell me. Then involves a trip to the settings using the Menu button on the back of the camera. Once in there, navigating to the spanner icon and then to the clock one gets you to the time settings where you can adjust it as needed. Pressing OK commits the setting to memory for the future, and you are then ready to go.

While on the subject of settings, the Info button is where you can set the levels to appear in the image display (on the viewfinder in my case); somehow I managed to lose these until I recalled how to get them back. Next on the list is another button that needs care on the top of the camera near the shutter release: one with a magnifying glass icon on there: this is the electronic zoom that has caught me out in the past. Naturally, other exposure settings dials also need care too, so it is never a good idea to rush the operation of a modern digital camera. Keeping their batteries charged will help too, especially in avoiding the predicament whose resolution led to the writing of this piece.

Add a Comment

Your email address will not be published. Required fields are marked *

Please be aware that comment moderation is enabled and may delay the appearance of your contribution.

  • The content, images, and materials on this website are protected by copyright law and may not be reproduced, distributed, transmitted, displayed, or published in any form without the prior written permission of the copyright holder. All trademarks, logos, and brand names mentioned on this website are the property of their respective owners. Unauthorised use or duplication of these materials may violate copyright, trademark and other applicable laws, and could result in criminal or civil penalties.

  • All comments on this website are moderated and should contribute meaningfully to the discussion. We welcome diverse viewpoints expressed respectfully, but reserve the right to remove any comments containing hate speech, profanity, personal attacks, spam, promotional content or other inappropriate material without notice. Please note that comment moderation may take up to 24 hours, and that repeatedly violating these guidelines may result in being banned from future participation.

  • By submitting a comment, you grant us the right to publish and edit it as needed, whilst retaining your ownership of the content. Your email address will never be published or shared, though it is required for moderation purposes.