The error tells you how to fix things:
/* MessageId: TA_E_EXPIRED Message code (in Hex): 0xD Message code (in Decimal): 13
MessageText:
The activation has expired or the system time has been tampered with. Ensure your time, timezone, and date settings are correct.
If you know for sure the offline activation (or offline verified trial) has not expired, then the problem is fraudulent date/time/timezone. To fix the problem do the following in order, don't skip a step:
1. Fix the timezone on the device. 2. Fix the date on the device. 3. Fix the time on the device. 4. Restart the device.
Step 1 is critical. As is step 4.*/#define TA_E_EXPIRED ((HRESULT)0x0000000DL)
You need to do every one of those steps (including step 4).