Bug 407949 - Group By Time uses groups by minute not second
Summary: Group By Time uses groups by minute not second
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Albums-ItemGroup (show other bugs)
Version: 6.1.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-25 19:46 UTC by Bob
Modified: 2019-05-27 17:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob 2019-05-25 19:46:04 UTC
SUMMARY


STEPS TO REPRODUCE
1. Select 2 photos with Date Taken timestamp a second apart
2. Choose Group -> Group By Time
3. 

OBSERVED RESULT
2 images with timestamps 2016:03:18 15:52:15 2016:03:18 15:52:16 get grouped together.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2019-05-25 21:28:47 UTC
Images are grouped with less than 2 seconds. I think this is again a locale problem with the AppImage. Please start the AppImage with "LANG=C /path/to/digikam.appimage" and report if the problem is solved.

Maik
Comment 2 Bob 2019-05-25 22:10:20 UTC
Apologies, rushed that post - additional details below.

SUMMARY
Digikam Group By Time groups images by nearest minute, not nearest second.


STEPS TO REPRODUCE
1. Select 2 photos with Date Taken timestamp a second apart
2. Choose Group -> Group By Time
3. 

OBSERVED RESULT
2 images with timestamps 2016:03:18 15:52:15 2016:03:18 15:52:16 get grouped together.

EXPECTED RESULT
Images a second or more apart should not be grouped

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 19.04 (5.0.0-15-generic SMP x86_64)
KDE Plasma Version: Plasma 5.15.5 from Kubuntu backports
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Comment 3 Bob 2019-05-25 22:16:24 UTC
Apologies again, didn't expect/realise someone had already replied thanks for the quick response!

I had read elsewhere that only images where only grouped within a second of each other. If it's 2 seconds, is there a way for the user to reduce that? My use-case: I only want photos with identical timestamps grouped (RAW & JPEG of the same shot). 

With grouping as it is I get different shots taken manually in quick succession or burst shots grouped together.
Comment 4 Maik Qualmann 2019-05-25 22:29:37 UTC
As I said, it is less than 2 seconds, which works properly here with a native digiKam version. And 2 seconds are not too much even with a fast image sequence. But we already have reports that QDateTime does not work correctly for some users in the AppImage, including when comparing the creation date. We need to find the cause and a solution for the AppImage. How is your system locale set? And does it work, if you start the AppImage with "LANG=C /path/to/digikam.appimage"?

Maik
Comment 5 Bob 2019-05-25 23:05:25 UTC
If that is the intended behaviour then it is also working on my system, the images are less than 2 seconds apart. That was a misunderstanding on my part. The bug can be closed, I may put in a feature request instead for some level of adjustment to the group time range in settings.

Thanks again for the help.