DateTime doest have store's local time in Delivery Customization Extension

Topic summary

A developer needs to retrieve both date and time in a store’s local timezone within a Delivery Customization Extension to conditionally show/hide delivery options based on time of day and day of week.

Current Situation:

  • Can successfully query the date using GraphQL based on shop settings
  • DateTime values are not returning the store’s local time as expected
  • Includes a GraphQL query screenshot and extension console output showing the issue

Action Taken:

  • Initially posted in the forum with technical details
  • Advised to open a GitHub issue in the extensions repository for better visibility
  • New issue created: GitHub shopify/ui-extensions issue #1755

Status: Unresolved - awaiting response on the GitHub issue tracker where the problem can be properly tracked and addressed by the extensions team.

Summarized with AI on November 12. AI used: claude-sonnet-4-5-20250929.

Hi

I need time for the day, I can get the Date based on the shop using the below Graphql query:

I need time with the date as well to show/hide delivery options based on time and day of the week.

GraphQL Query

Function code testing javascript returning time

Extension output on developer console

I have tried following up on GitHub, no response.
GitHub Issue link

Kindly provide a solution.

Hi Muhammad,

It may be better to open a new issue in the extensions GitHub repo as it might easily be missed in the older one you found.

1 Like

Update: New issue opened on GitHub:
GitHub - Delivery Customization Issue