aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-12-20 09:59:58 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-12-20 10:00:04 +0100
commitb1e40943d2bd6cac291b36b43ed02830c0732e48 (patch)
tree40f084d65d09fed6bb4c905b6f1573c5a6114b39 /main
parent6db1922a93c9aa4b007b5c3a9259c8c1e9471ca6 (diff)
downloadcgeo-b1e40943d2bd6cac291b36b43ed02830c0732e48.zip
cgeo-b1e40943d2bd6cac291b36b43ed02830c0732e48.tar.gz
cgeo-b1e40943d2bd6cac291b36b43ed02830c0732e48.tar.bz2
fix #4550: fresh log entry of trackable shows log date as today
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/LogTrackableActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/LogTrackableActivity.java b/main/src/cgeo/geocaching/LogTrackableActivity.java
index fd84173..fde328a 100644
--- a/main/src/cgeo/geocaching/LogTrackableActivity.java
+++ b/main/src/cgeo/geocaching/LogTrackableActivity.java
@@ -343,7 +343,7 @@ public class LogTrackableActivity extends AbstractLoggingActivity implements Dat
* @param logText
*/
private void addLocalTrackableLog(final String logText) {
- final LogEntry logEntry = new LogEntry(Calendar.getInstance().getTimeInMillis(), typeSelected, logText);
+ final LogEntry logEntry = new LogEntry(date.getTimeInMillis(), typeSelected, logText);
final ArrayList<LogEntry> modifiedLogs = new ArrayList<>(trackable.getLogs());
modifiedLogs.add(0, logEntry);
trackable.setLogs(modifiedLogs);