Upgrading a subscription using Stripe.Js 2 plugin

Hi,

I am upgrading a user subscription from 90 days premium to premium using Stripe.Js 2 plugin.

There is the action. I am setting Trail period end to current date and billing cycle to now. But it is throwing error.
image
Error: {“error”:{“message”:“The parameter trial_end expects a unix timestamp representing a date and time in the future. You specified the value 1731995492 which is in the past.”,“param”:“trial_end”,“request_log_url”:"Stripe Login | Sign in to the Stripe Dashboard

In stripe logs it is showing this:

Can someone guide me how I can upgrade user subscription from trail period?