Skip to content

Commit

Permalink
Merge pull request #72 from UnionInternationalCheminsdeFer/1.4.4
Browse files Browse the repository at this point in the history
1.4.4
  • Loading branch information
CGantert345 authored Aug 11, 2023
2 parents 69ff8d0 + 7743ad4 commit 91c78a9
Show file tree
Hide file tree
Showing 19 changed files with 83 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.uic.barcode</groupId>
<artifactId>org.uic.barcode</artifactId>
<version>1.4.3</version>
<version>1.4.4</version>
<packaging>jar</packaging>
<name>UIC barcode</name>
<description>encoding and decoding of Aztec barcode content according to UIC IRS 90918-9</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,12 @@ public Date getValidUntilDate(Date issuingDate){
if (this.validUntilDay == null) {
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,11 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}


//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,11 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

}
Expand All @@ -426,10 +431,11 @@ public Date getUTCValidFromDate(Date issuingDate){
}

public Date getUTCValidUntilDate(Date issuingDate){
this.getValidUntilDate(issuingDate);
if (this.validUntilUTCOffset == null) {
return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validFromTime, this.validFromUTCOffset);
return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime, this.validUntilUTCOffset);
} else {
return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validUntilTime, this.validFromUTCOffset);
return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime, this.validFromUTCOffset);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

if (this.getValidUntilTime() == null) {
this.validUntilTime = 1439L;
}


return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

if (this.getValidUntilTime() == null) {
this.validUntilTime = 1439L;
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

}
Expand All @@ -426,10 +430,11 @@ public Date getUTCValidFromDate(Date issuingDate){
}

public Date getUTCValidUntilDate(Date issuingDate){
this.getValidUntilDate(issuingDate);
if (this.validUntilUTCOffset == null) {
return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validFromTime, this.validFromUTCOffset);
return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay + this.validUntilDay, this.validFromTime, this.validFromUTCOffset);
} else {
return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validUntilTime, this.validFromUTCOffset);
return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime, this.validFromUTCOffset);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,14 @@ public Date getValidUntilDate(Date issuingDate){
this.validFromDay = 0L;
}

if (this.validUntilTime == null) {
this.validUntilTime = 1439L;
}

if (this.validUntilDay == null) {
return null;
}


return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ public Date getValidUntilDate(Date issuingDate){
return null;
}

//set to 23:59
if (this.getValidUntilTime() == null) {
this.setValidUntilTime(1439L);
}

return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);

Expand Down

0 comments on commit 91c78a9

Please sign in to comment.