Linux Mint 17.3 copy photos changes date to current.

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
Relative
Level 3
Level 3
Posts: 101
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Linux Mint 17.3 copy photos changes date to current.

Post by Relative » Mon Dec 26, 2016 3:46 pm

Just attempted to copy holiday photos from Samsung Galaxy S7 phone to my Linux Mint 17.3 laptop over USB. All the photos now have the current date AND time that I copied them. Went back to some photos from several months ago, copied them just now and got the same result....today's date and time. Same photos were copied successfully back in June. This doesn't seem to have anything to do with GMT settings as I found when searching other posts. I looked back at previous photos copied from various phones last year and earlier this year and did not have this problem. Have been using Mint 17.x since 17 came out. Laptop is currently set to local date/time.

Help? Suggestions?
Lenovo T430, Lenovo L430, Dell N7110, Toshiba A215, Fujitsu C2220, Raspberry pi 3b+, Old home-built P4 desktop.

User avatar
Flemur
Level 17
Level 17
Posts: 7001
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Linux Mint 17.3 copy photos changes date to current.

Post by Flemur » Mon Dec 26, 2016 4:06 pm

Relative wrote:All the photos now have the current date AND time that I copied them.
How are you copying them?

With thunar (xfce file browser), the "modified" date remains constant (=the same as shown on the camera).
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

Relative
Level 3
Level 3
Posts: 101
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Linux Mint 17.3 copy photos changes date to current.

Post by Relative » Mon Dec 26, 2016 4:19 pm

I use Caja .... View/Extra Pane option. Open camera on one pane and destination folder on other pane. Select pics, then use Copy To/Other Pane option. I should add I am using Mint Mate.

Mike
Lenovo T430, Lenovo L430, Dell N7110, Toshiba A215, Fujitsu C2220, Raspberry pi 3b+, Old home-built P4 desktop.

Relative
Level 3
Level 3
Posts: 101
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Linux Mint 17.3 copy photos changes date to current.

Post by Relative » Mon Dec 26, 2016 4:27 pm

Just tried one option found in another post to correct time. I dual-booted to Windows 7 (I'll bet it has been a year or better since I did that) on the same laptop and created a temp folder. Copied all the pics over with no problems whatsoever with the date and time. Then rebooted 17.3 and using Caja did the same copy but from the Windows folder to the new folder in Linux and the date/time problem is no longer there. Terrible process to have to use Windows first.

I don't consider this solved by a long shot....just a temporary work-around.

Mike
Lenovo T430, Lenovo L430, Dell N7110, Toshiba A215, Fujitsu C2220, Raspberry pi 3b+, Old home-built P4 desktop.

User avatar
Flemur
Level 17
Level 17
Posts: 7001
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Linux Mint 17.3 copy photos changes date to current.

Post by Flemur » Mon Dec 26, 2016 4:42 pm

Relative wrote:have to use Windows first.
That is truly horrible!

I'm not sure what causing the difference (file browser vs something in the camera's system vs ???), but try the below (might have to install gphoto2) and see what happens (in a terminal):

Code: Select all

gphoto2 --get-all-files 
There's also

Code: Select all

gphoto2 --list-files
gphoto2 --delete-all-files
You might also install thunar - it should install without a lot of extra dependencies.
Or pcmanfm or sunflower.

Also see here:
http://forums.androidcentral.com/genera ... wrong.html

And here (look at #9 and #10)
https://code.google.com/p/android/issue ... l?id=57065
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

Relative
Level 3
Level 3
Posts: 101
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Linux Mint 17.3 copy photos changes date to current.

Post by Relative » Mon Dec 26, 2016 5:12 pm

OK. Downloaded and installed Thunar as you suggested. Started two instances of it (doesn't have the 'Extra Pane" option as Caja does) and got the exact same failure from the USB device to a Linux folder. I was ready to blame Caja for the failure, but it seems you don't have this problem with Thunar on XFCE but it exists on Thunar on Mint Mate.

Also used Thunar to copy from the Windows folder to a Linux folder an it worked fine there....just like Caja.

Mike
Lenovo T430, Lenovo L430, Dell N7110, Toshiba A215, Fujitsu C2220, Raspberry pi 3b+, Old home-built P4 desktop.

Relative
Level 3
Level 3
Posts: 101
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Linux Mint 17.3 copy photos changes date to current.

Post by Relative » Mon Jan 09, 2017 10:32 pm

Just noticed a 'duh' while trying to figure this out. The column title in Caja is "Date Modified". You can change the visible columns option and select "Date Accessed". However; there is no option to display "Date Taken". Looking at the 'Properties' of a jpg and selecting the 'Image' tab, the 'Date Taken' label appears and the date and time taken appear correctly on some test pictures I just transferred between my phone and Linux. Caja simply doesn't give you the option to use this field.

Further checking showed a PDF file has a "Created" field that has the original Date and Time under the 'Document' tab in properties and there is no option in Caja to pick up this field either.

Seems Caja simply doesn't give you the option to display all EXIF data except individually by file.

Mike
Lenovo T430, Lenovo L430, Dell N7110, Toshiba A215, Fujitsu C2220, Raspberry pi 3b+, Old home-built P4 desktop.

Relative
Level 3
Level 3
Posts: 101
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Linux Mint 17.3 copy photos changes date to current.

Post by Relative » Thu Jan 12, 2017 8:15 pm

This is a carryover from a different thread requesting run of the following commands:

/etc/adjtime is as follows:

0.0 0 0
0
LOCAL


timedatectl status
Local time: Thu 2017-01-12 16:05:47 PST
Universal time: Fri 2017-01-13 00:05:47 UTC
Timezone: America/Los_Angeles (PST, -0800)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: yes
DST active: no
Last DST change: DST ended at
Sun 2016-11-06 01:59:59 PDT
Sun 2016-11-06 01:00:00 PST
Next DST change: DST begins (the clock jumps one hour forward) at
Sun 2017-03-12 01:59:59 PST
Sun 2017-03-12 03:00:00 PDT

Warning: The RTC is configured to maintain time in the local time zone. This
mode is not fully supported and will create various problems with time
zone changes and daylight saving adjustments. If at all possible use
RTC in UTC, by calling 'timedatectl set-local-rtc 0'.


At this point I tried copying over some photos from my phone and it shows a new "Date Modified" as today instead of the actual date from the phone.


Ran sudo timedatectl set-local-rtc 0 to get rid of adjtime.

timedatectl status
Local time: Thu 2017-01-12 16:10:23 PST
Universal time: Fri 2017-01-13 00:10:23 UTC
Timezone: America/Los_Angeles (PST, -0800)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: no
Last DST change: DST ended at
Sun 2016-11-06 01:59:59 PDT
Sun 2016-11-06 01:00:00 PST
Next DST change: DST begins (the clock jumps one hour forward) at
Sun 2017-03-12 01:59:59 PST
Sun 2017-03-12 03:00:00 PDT

Copy more photos and no change to the problem.

First I can only say the photo was not 'modified', simply copied and there is no reason to change the 'Date Modified' date at all.

And as previously stated, the 'Date Taken' is the important one to me for sorting photos and is not displayable in Caja.

What am I missing?

Mike
Lenovo T430, Lenovo L430, Dell N7110, Toshiba A215, Fujitsu C2220, Raspberry pi 3b+, Old home-built P4 desktop.

Mute Ant
Level 14
Level 14
Posts: 5135
Joined: Tue Sep 03, 2013 7:45 pm
Location: Norfolk UK

Re: Linux Mint 17.3 copy photos changes date to current.

Post by Mute Ant » Fri Jan 20, 2017 9:48 pm

Would restoring every JPG file time to that stored in the EXIF do the job? The jhead command has lots of functions for EXIF input and output.

Code: Select all

### Install the jhead command...
    sudo apt-get update && sudo apt-get install jhead

Code: Select all

### Search your home folder for jpg files and re-time-stamp them...
    find $HOME -iname "*.jpg" -exec jhead -ft {} ';'
While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named "manual".

Relative
Level 3
Level 3
Posts: 101
Joined: Fri Jul 30, 2010 9:43 pm
Location: Garden Grove, CA

Re: Linux Mint 17.3 copy photos changes date to current. [SOLVED]

Post by Relative » Mon Aug 28, 2017 8:18 pm

Sorry for the delay in responding to this. My resolution is simply to drop CAJA and install NEMO with the 'nemo-media-columns' package. This gives me the ability to add several different EXIF columns to the display (sadly lacking in CAJA). The primary problem was the inability to keep edited photos sorted by date taken (which should never change) in order to present a slide show in the proper order. NEMO with the additional package does an excellent job of this. Currently running Mint Mate 18.1.

Thank you for the help.
Mike
Lenovo T430, Lenovo L430, Dell N7110, Toshiba A215, Fujitsu C2220, Raspberry pi 3b+, Old home-built P4 desktop.

Post Reply

Return to “Other topics”