mirror of
https://github.com/frode-carlsen/cron.git
synced 2025-12-06 22:10:55 +03:00
When omitting the seconds, now 0 will be used for the seconds instead of *
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<groupId>fc.cron</groupId>
|
<groupId>fc.cron</groupId>
|
||||||
<artifactId>cron</artifactId>
|
<artifactId>cron</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.2</version>
|
<version>1.3</version>
|
||||||
<name>cron</name>
|
<name>cron</name>
|
||||||
<url>https://github.com/frode-carlsen/cron</url>
|
<url>https://github.com/frode-carlsen/cron</url>
|
||||||
|
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ public class CronExpression {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ix = withSeconds ? 1 : 0;
|
int ix = withSeconds ? 1 : 0;
|
||||||
this.secondField = new SimpleField(CronFieldType.SECOND, withSeconds ? parts[0] : "*");
|
this.secondField = new SimpleField(CronFieldType.SECOND, withSeconds ? parts[0] : "0");
|
||||||
this.minuteField = new SimpleField(CronFieldType.MINUTE, parts[ix++]);
|
this.minuteField = new SimpleField(CronFieldType.MINUTE, parts[ix++]);
|
||||||
this.hourField = new SimpleField(CronFieldType.HOUR, parts[ix++]);
|
this.hourField = new SimpleField(CronFieldType.HOUR, parts[ix++]);
|
||||||
this.dayOfMonthField = new DayOfMonthField(parts[ix++]);
|
this.dayOfMonthField = new DayOfMonthField(parts[ix++]);
|
||||||
|
|||||||
Reference in New Issue
Block a user