| Summary: | KTimeTRacker file created in standalone application shows all times as 00:00 | ||
|---|---|---|---|
| Product: | [Applications] ktimetracker | Reporter: | Ricardo Graça <ricardo> |
| Component: | general | Assignee: | Zoltan Gyarmati <mr.zoltan.gyarmati> |
| Status: | RESOLVED UNMAINTAINED | ||
| Severity: | normal | CC: | aspotashev, jlp |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | All | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Ricardo Graça
2011-02-22 22:49:22 UTC
The other way around gives the same result BTW. I think the reason for this is the X-KDE-ktimetracker-duration in timetrackerstorage.cpp. I think this patch should make the difference. ToDo: Test, explain here why and look for possible refinements:
diff --git a/ktimetracker/timetrackerstorage.cpp b/ktimetracker/timetrackerstorage.cpp
index 004d0af..cd82fae 100644
--- a/ktimetracker/timetrackerstorage.cpp
+++ b/ktimetracker/timetrackerstorage.cpp
@@ -974,7 +974,7 @@ void timetrackerstorage::changeTime(const Task* task, const long deltaSeconds)
e->setDtEnd(KDateTime(end, KDateTime::Spec::LocalZone()));
// Use a custom property to keep a record of negative durations
- e->setCustomProperty( KGlobal::mainComponent().componentName().toUtf8(),
+ e->setCustomProperty( "ktimetracker",
QByteArray("duration"),
QString::number(deltaSeconds));
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I will be closing this bug. KTimeTracker is now ported to Qt5/KF5, however the Kontact plugin is dropped since the KDE PIM team and I agreed that KTimeTracker is not very relevant to KDE PIM/Kontact. Thus, this bug is still RESOLVED as UNMAINTAINED. |