From c9f2dfb14c3d4ffa77d40bbeabb70862c6a23c69 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 6 Mar 2013 14:59:29 -0800 Subject: [PATCH] Put JSON null in changes happened when value is null --- .../com/todoroo/andlib/utility/DateUtilities.java | 2 +- .../astrid/actfm/sync/messages/ChangesHappened.java | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/api/src/com/todoroo/andlib/utility/DateUtilities.java b/api/src/com/todoroo/andlib/utility/DateUtilities.java index 2c12e5719..6c0b32a9b 100644 --- a/api/src/com/todoroo/andlib/utility/DateUtilities.java +++ b/api/src/com/todoroo/andlib/utility/DateUtilities.java @@ -299,7 +299,7 @@ public class DateUtilities { public static String timeToIso8601(long time, boolean includeTime) { if (time == 0) - return ""; //$NON-NLS-1$ + return null; Date date = new Date(time); String formatString = "yyyy-MM-dd'T'HH:mm:ssZ"; //$NON-NLS-1$ if (!includeTime) 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 5ee232094..aa16200a2 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 @@ -144,7 +144,10 @@ public class ChangesHappened