Use createdOn in OCPI token when lastChangedOn is not provided
MODIFY
src/server/ocpi/OCPIUtils.ts
src/server/ocpi/OCPIUtils.ts
@@ -196,7 +196,7 @@ export default class OCPIUtils {
issuer: tenant.name,
valid: tag.active && tag.user?.status === UserStatus.ACTIVE,
whitelist: OCPITokenWhitelist.ALLOWED_OFFLINE,
- last_updated: tag.lastChangedOn ?? new Date()
+ last_updated: tag.lastChangedOn ?? tag.createdOn
};
}

Use createdOn in OCPI token when lastChangedOn is not provided