Bug 424912 - Last modified dates of received images are incorrect after sharing through the app
Summary: Last modified dates of received images are incorrect after sharing through th...
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 434834 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-08-02 08:04 UTC by Alvin Tang
Modified: 2024-08-05 23:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
bug_2.png is the screenshot of Dolphin in the PC with KDE Plasma (recipient). The incorrect last modified date is shown. (1.16 MB, image/png)
2020-08-02 08:04 UTC, Alvin Tang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alvin Tang 2020-08-02 08:04:16 UTC
Created attachment 130570 [details]
bug_2.png is the screenshot of Dolphin in the PC with KDE Plasma (recipient). The incorrect last modified date is shown.

SUMMARY
When I send images from the Android (MIUI) Gallery app with the share button, the last modified dates are found incorrect.

STEPS TO REPRODUCE
1. View an image with the Gallery app on the mobile phone
2. Click the share button in the Gallery app
3. Choose KDE Connect as the sharing method
2. Choose the sharing destination

OBSERVED RESULT
The last modified date is in the future (e.g. 11/5/2446 6:38AM)

EXPECTED RESULT
The last modified date should be the time when the file is sent.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux x86_64 (Kernel: 5.4.54-1-lts)
(available in About System)
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
The bug does not exist when I send files with other Android apps e.g. file manager.
Comment 1 Rüdiger Bente 2023-04-13 07:13:51 UTC
Same for me.
KDEConnect on Android Version 1.23.2and on Linux (Mint) 21.12.3-0ubuntu1

Because of this i run into severe problems with my Nextcloud installation, because the files were automatically transferred  to the Nextcloud host and that produces critical errors with the replication, when the modification time is in the future
Comment 2 Rüdiger Bente 2023-06-18 08:09:39 UTC
no reaction here, but for those with a similar problem....
I use inotifywait for a temporary solution, running a script in bash nonstop:

#!/bin/bash

inotifywait -mrq -e move --format %w%f /home/xxxx/Downloads | while read FILE
do
    EXP=$(echo -n $FILE | tail -c 4)
    if [ "$EXP" = ".jpg" ]; then
	touch $FILE
    fi
done

by the way, the timestamp for files created by this bug are always 2446-05-11 00:38:55 which is the unix timestamp 15032385535 which is hex 37FFFFFFF  or binary 1101111111111111111111111111111111. Could be a buffer problem???
Comment 3 Albert Vaca Cintora 2023-06-19 12:47:12 UTC
Does this happen when using the "browse filesystem" option or the "share file" option? Does it happen only when sharing from phone -> PC? Which version of the Android app are you using?
Comment 4 Rüdiger Bente 2023-06-19 13:01:28 UTC
i use only the send function for sharing pictures from the mobile to the PC using the send function of the gallery.

Version KDEConnect on Android is 1.26.0, KDEConnect under Linux Mint (V21 Vanessa base: Ubuntu 22.04, Kernel 5.15) is on 21.12.3
The mobile is a Xiaomi Redmi 9, Android 12, MIUI 13.01 stable

Will test the other functions soon and report the results.
Comment 5 Rüdiger Bente 2023-06-19 13:12:52 UTC
strange result:
when i use the file manager to send a picture from the mobile to the PC the timestamp on the PC is valid and ok,
when i send the same picture using the send function of the gallery the timestamp on the PC is 2446-05-11 00:38:55
both test are repeated a couple of times with the same results using KDEConnect on the mobile, same network
Comment 6 cwo 2024-08-05 23:50:34 UTC
*** Bug 434834 has been marked as a duplicate of this bug. ***