diff --git a/api/src/com/todoroo/andlib/utility/DateUtilities.java b/api/src/com/todoroo/andlib/utility/DateUtilities.java index a14f3d469..4faea254b 100644 --- a/api/src/com/todoroo/andlib/utility/DateUtilities.java +++ b/api/src/com/todoroo/andlib/utility/DateUtilities.java @@ -291,9 +291,12 @@ public class DateUtilities { return result; } - public static String timeToIso8601(long time) { + public static String timeToIso8601(long time, boolean includeTime) { Date date = new Date(time); - return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(date); //$NON-NLS-1$ + String formatString = "yyyy-MM-dd'T'HH:mm:ssZ"; //$NON-NLS-1$ + if (!includeTime) + formatString = "yyyy-MM-dd"; //$NON-NLS-1$ + return new SimpleDateFormat(formatString).format(date); } } diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java index 1d214da92..784011b20 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java @@ -162,8 +162,12 @@ public class ChangesHappened