Change timestamps for objects of mixed types or source

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
B.Douille
Posts: 293
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Change timestamps for objects of mixed types or source

Post by B.Douille »

This is sometime annoying as it drive to loosing the original date. Either the file creation, file modification or existing metadata which was right in the original are changed to the current date & time.

This occurs when:
1) The source selected for date & time is from metadata (e.g. Exif date digitized)
2) From the objects selected, some of these do not have the specific field selected above (e.g. video clips, images from a scanner or modified with a :@ software which remove metadata).
3) You select the file creation, file modification date or another metadata to be changed

Then, for the objects not having the source data, the value actualy used is the current date and time (in UTC timezone). This is visible by pressing the Next / Previous buttons when multiple objects are selected for a change: The date on the right of the arrow switches to today's date for the specific objects.
By pressing the Apply button, these objects gets a useless timestamp and the original value is definitely lost.

To avoid this, I would suggest to skip the files where the source data doesn't exist.
An alert window could be displayed to inform the user at the end of the file processing "Some files where left unchanged due to the source data selected doesn't exist in those files".

Thanks in advance for an improvement
User avatar
B.Douille
Posts: 293
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Re: Change timestamps for objects of mixed types or source

Post by B.Douille »

Can we have this improvement added to 1.97?
Always very annoying to loose data without being warned.

Rgds,
Daniel
Daniel, happy user to manage photo and videos and show them in slideshows for 20 years (Windows 11, Linux Ubuntu and Android)
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Change timestamps for objects of mixed types or source

Post by marsh »

I can't recreate this problem.
User avatar
B.Douille
Posts: 293
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Re: Change timestamps for objects of mixed types or source

Post by B.Douille »

marsh wrote:I can't recreate this problem.
Simple to demonstrate.
- Find 2 objects: a picture having EXIF dates and a picture from a scanner or a video clip. Select them.
- Start the Change timestamp feature and select the picture having EXIF dates.
- Select digitized date as source and file modification date as field to be changed. The window shows the digitized date right to the file modification date, which is correct.
- Then, navigate to the image scanned or the video, the date on the right changes to the current date and time, which isn't expected.
- If you press the start button you'll loose the original file modification date of all files not having metadata.
Daniel, happy user to manage photo and videos and show them in slideshows for 20 years (Windows 11, Linux Ubuntu and Android)
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Change timestamps for objects of mixed types or source

Post by xnview »

So you would like that if a file has not EXIF, then no modification?
Pierre.
User avatar
B.Douille
Posts: 293
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Re: Change timestamps for objects of mixed types or source

Post by B.Douille »

Yes Pierre, no modification. The existing values are more relevant than the current date & time.

Having some kind of alert or a flag would help users to quickly understand why some files will be (or have been) excluded. Best than a paragraph in the user guide :wink:

Thnks in advance,
Daniel
Daniel, happy user to manage photo and videos and show them in slideshows for 20 years (Windows 11, Linux Ubuntu and Android)
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Change timestamps for objects of mixed types or source

Post by oops66 »

xnview wrote:So you would like that if a file has not EXIF, then no modification?
Yes, I support too, +1
XnViewMP Linux X64 - Debian - X64
User avatar
B.Douille
Posts: 293
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Re: Change timestamps for objects of mixed types or source

Post by B.Douille »

I see there was no more supporters for this request :( , maybe due to this statement being a bit too restrictive:
xnview wrote:So you would like that if a file has not EXIF, then no modification?
The solution is not to excludes files not having EXIF data: A wrong date & time is set when a specific field doesn't exist in the EXIF stream. So The solution is to exclude files where the specified source field is'nt valid (no available, null, greyed in the dialog window).

Nice to have: An exclamation point in front of the source field would be welcome if one ore more files have this field missed.

Daniel
Daniel, happy user to manage photo and videos and show them in slideshows for 20 years (Windows 11, Linux Ubuntu and Android)
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Change timestamps for objects of mixed types or source

Post by xnview »

Pierre.
User avatar
B.Douille
Posts: 293
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Re: Change timestamps for objects of mixed types or source

Post by B.Douille »

Many thanks Pierre, it works fine and will prevent loosing precious time/date information.
Daniel, happy user to manage photo and videos and show them in slideshows for 20 years (Windows 11, Linux Ubuntu and Android)
Post Reply