| Summary: | add camera provided date and time is writting a bad time (one hour minus) | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | ryk <SaShS> |
| Component: | Import-IconView | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 7.6.0 | |
| Sentry Crash Report: | |||
| Attachments: | a screenshot about the commented error | ||
|
Description
ryk
2005-02-16 16:22:06 UTC
open the camera window and right click on an image and click on properties and see what does that time say. It shows the correct time.... :S Created attachment 9678 [details]
a screenshot about the commented error
Here is a screenshot to show you guys what it's going on with my digikam....
thx
(Debian, woody release, digikam 0.7, with kipi 0.1.0)
CVS commit by pahlibar:
use localtime and not utc to generate the exif based filename
BUGS: 99544
M +2 -3 cameraiconview.cpp 1.16
--- kdeextragear-3/digikam/utilities/cameragui/cameraiconview.cpp #1.15:1.16
@@ -154,9 +154,8 @@ QString CameraIconView::getTemplatedName
ext = ext.right( ext.length() - pos - 1);
- struct tm* time_tm = gmtime(&itemInfo->mtime);
- char* s = new char[100];
+ struct tm* time_tm = ::localtime(&itemInfo->mtime);
+ char s[100];
strftime(s, 100, QFile::encodeName(dname), time_tm);
dname = s;
- delete [] s;
dname.sprintf(QFile::encodeName(dname), position+1);
thx a lot, sorry, I wasn't able to find that bug by myself and the solution. |