Fixed dates being parsed wrong

This commit is contained in:
Robin Kupper committed 2011-06-07 00:06:34 +02:00
1 parent c04a895a24
commit 2fae8cc8b6
1 file changed
+1 -1
+1 -1
View File
@@ -58,7 +58,7 @@ public class Utils
public static int parseTimeSpec(String[] spec) { public static int parseTimeSpec(String[] spec) {
if (spec == null || spec.length < 1 || spec.length > 2) if (spec == null || spec.length < 1 || spec.length > 2)
return -1; return -1;
if (!spec[0].contains(":") || !spec[0].contains(".")) if (!spec[0].contains(":") && !spec[0].contains("."))
if (spec.length == 2) { if (spec.length == 2) {
if (!isInt(spec[0])) if (!isInt(spec[0]))
return -1; return -1;