Kyon147 / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
336 stars 99 forks source link

the installation date is not taking the timezone configured in the laravel app #205

Closed dandyleon19 closed 10 months ago

dandyleon19 commented 10 months ago

For bug reporting only! If you're posting a feature request or discussion, please ignore.

Expected Behavior

When installing the app, when the charge is created, the "billing_on" and "activated_on" fields should take the timezone configured in the Laravel app.

Current Behavior

At the time of installing the app, when the charge is created, the "billing_on" and "activated_on" fields are being created with the UTC timezone

Context

Failure Logs

In this example, the app was installed on 2023-08-27, but since it is taking the UTC timezone, it is creating the record with 2023-08-28 and consequently the end date of the trial_end_on is increased by one more day

image

Kyon147 commented 10 months ago

@dandyleon19 UTC is quite standard for most server side date fields and is usually recommend. As most apps, SaaS products just format the date in the client based on the UTC value.