[Bug 256789] New: Bad calculated album mean date when pictures before 1964

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 256789] New: Bad calculated album mean date when pictures before 1964

Bugzilla from shadow.walker@free.fr
https://bugs.kde.org/show_bug.cgi?id=256789

           Summary: Bad calculated album mean date when pictures before
                    1964
           Product: digikam
           Version: 1.5.0
          Platform: Mandriva RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           1.5.0 (using Devel)
OS:                Linux

When I open an album property and try to set the album date to a mean date of
all picture inside and picture are before 1970 I always obtain the date:
07/02/2106
If I try to set the album date by clicking on the most recent or the older, the
date is setted right
If I try to set the date by clicking on the mean date and picture inside is
from 1970 and above, the date is set roght

Reproducible: Always

Steps to Reproduce:
1 create an album
2 put a picture with date before 1970 (ie 01/01/1969)
3 open the album property
4 set the date by clicking on the mean date
5 look at the 07/02/2106 date obtained

Actual Results:  
07/02/2106 is obtained

Expected Results:  
01/01/1969 should be obtained

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 256789] Bad calculated album mean date when pictures before 1970

Bugzilla from shadow.walker@free.fr
https://bugs.kde.org/show_bug.cgi?id=256789


Stéphane Pontier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Bad calculated album mean   |Bad calculated album mean
                   |date when pictures before   |date when pictures before
                   |1964                        |1970




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 256789] Bad calculated album mean date when pictures before 1970

Marcel Wiesweg
In reply to this post by Bugzilla from shadow.walker@free.fr
https://bugs.kde.org/show_bug.cgi?id=256789





--- Comment #1 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-11-13 14:14:43 ---
Interesting problem. Obviously, the Unix Epoch does have its weaknesses ;-)
Can you provide such a picture for testing? I would like to see where it works
and where things break.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 256789] Bad calculated album mean date when pictures before 1970

Bugzilla from KaiUweBroulik2@hotmail.com
In reply to this post by Bugzilla from shadow.walker@free.fr
https://bugs.kde.org/show_bug.cgi?id=256789


[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #2 from  <KaiUweBroulik2 hotmail com>  2010-11-14 01:49:18 ---
Seems to be an variable overflow/negative sign fault

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 256789] Bad calculated album mean date when pictures before 1970

Bugzilla from shadow.walker@free.fr
In reply to this post by Bugzilla from shadow.walker@free.fr
https://bugs.kde.org/show_bug.cgi?id=256789





--- Comment #3 from Stéphane Pontier <shadow walker free fr>  2010-11-15 11:49:12 ---
Created an attachment (id=53430)
 --> (http://bugs.kde.org/attachment.cgi?id=53430)
Picture tagged from 1910-05-28

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 256789] Bad calculated album mean date when pictures before 1970

Marcel Wiesweg
In reply to this post by Bugzilla from shadow.walker@free.fr
https://bugs.kde.org/show_bug.cgi?id=256789


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #4 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-01-28 11:34:44 ---
SVN commit 1217733 by mwiesweg:

Do not use time_t when calculating average date, that works only on a limited
scale.
Use QDate's Julian Day to get a much wider range.

BUG: 256789


 M  +2 -1      NEWS  
 M  +10 -21    libs/database/albumdb.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1217733

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 256789] Bad calculated album mean date when pictures before 1970

Gilles Caulier-4
In reply to this post by Bugzilla from shadow.walker@free.fr
https://bugs.kde.org/show_bug.cgi?id=256789

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |2.0.0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 256789] Bad calculated album mean date when pictures before 1970

bugzilla_noreply
In reply to this post by Bugzilla from shadow.walker@free.fr
https://bugs.kde.org/show_bug.cgi?id=256789

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|general                     |Metadata-Engine

--
You are receiving this mail because:
You are the assignee for the bug.