Fixed dates being parsed wrong
This commit is contained in:
1 parent
c04a895a24
commit
2fae8cc8b6
1 file changed
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user