It seems like LicenseValidUntil attribute is Localized. In cases where the time doesn’t matter (like this one) you should turn off localization. This will make future date calculations and comparisons easier. It will also change the way dates are captured in the database so you won’t have the time zone offset you have in this case.
One correction: Turning off localize doesn’t change the way dates are stored in the database. Dates are always stored as UTC time. It will change how dates are handled in microflows and pages. The time zone of the user will no longer be used to localize dates with localize turned off.
Is it just the dates that need to match, so the time is not important?
If that is the case you can format the date to just be that: only the date, without time and then parse it back to a date again.