Skip to content

Commit

Permalink
fix error "Property 'expirationTime' must follow XML DateTime format."
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rudkovskiy authored and r-brown committed Aug 13, 2024
1 parent 955ce97 commit 4f7f240
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/netlicensing/converters.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ namespace netlicensing {
inline parameters_type toParametersList<Token>(Token value) {
parameters_type params = toParametersList<BaseEntity>(value);
params.push_back(std::make_pair(VENDOR_NUMBER, value.getVendorNumber()));
params.push_back(std::make_pair(EXPIRATION_TIME, value.getExpirationTime().toString()));

const std::string expirationTime = value.getExpirationTime().toString();
if (!expirationTime.empty()) {
params.push_back(std::make_pair(EXPIRATION_TIME, expirationTime));
}

params.push_back(std::make_pair(TOKEN_TYPE, tokenTypeToString(value.getTokenType())));
return params;
}
Expand Down

0 comments on commit 4f7f240

Please sign in to comment.