I live in Hong Kong and I always get this sandbox transactional transaction after midnight from paypal.billingAgreement.execute() . The error goes away during the day, possibly because the place where the PayPal server is located finally ends at midnight.
{ name: 'SUBSCRIPTION_UNMAPPED_ERROR', message: 'Subscription start date should be greater than current date', information_link: 'https://developer.paypal.com/docs/api/payments.billing-agreements#errors', debug_id: 'd2e618eef4162', httpStatusCode: 400 },
I know this is a timezone issue in the sandbox environment, but I cannot figure out how to solve it.
My billing agreement is created as an example in the PayPal-node-SDK
process.env.TZ = 'utc'; var isoDate = new Date(); isoDate.setSeconds(isoDate.getSeconds() + 4); isoDate.toISOString().slice(0, 19) + 'Z'; var billingAgreementAttributes = { "start_date": isoDate, /..../ }
I set the TZ environment variable in nodes on utc ;
Setting the time zone for the sandbox account that I use to login and sign:

I also tried different zones, such as Eastern Time , but it has no effects.
source share