-1

I am trying to create subscription in stripe through php sdk. subscription created successfully but here is the issue,When i create a subscription from UTC timezone my date is 2021-01-08 13:05:25 but in the dashboard subscription created in 2021-01-07 23:35. Also in the stripe response gave me 2021-01-08 13:05:25.my data is generated according to the 2021-01-08. so i am confused, my subscription is deduct on next 7 or 8.

Please let me know if my question is not clear enough or I missed something.

Prabhat
  • 13
  • 4
  • Please show the code that you're using. – aynber Jan 11 '22 at 12:37
  • @anyber I am useing simple create function. $subscriptions = $stripe->subscriptions->create([ 'customer' => $customer_id, 'items' => [ ['price' => $package->product_strip_id], ] ]); – Prabhat Jan 11 '22 at 12:45

1 Answers1

0

Check laravel application timezone in /config/app.php

'timezone' => 'UTC',

Set it as UTC