From 76727b7a9cf780f200414548b9d454bf9a701e3e Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 26 Feb 2010 15:29:37 -0800 Subject: [PATCH] Quick fix to add safer time checking for time from intents. --- src/com/android/calendar/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java index 7294714..aa48fe0 100644 --- a/src/com/android/calendar/Utils.java +++ b/src/com/android/calendar/Utils.java @@ -95,7 +95,7 @@ public class Utils { } } } - if (millis == -1) { + if (millis <= 0) { millis = System.currentTimeMillis(); } return millis; -- 2.11.0