Skip to content

Commit

Permalink
bug(subscription) display time in 'en' style
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Jun 19, 2023
1 parent 801499c commit ea6285c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/customers/subscriptions/AddSubscriptionDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,8 @@ export const AddSubscriptionDrawer = forwardRef<
.toFormat('LLL. dd, yyyy')
const time = `${DateTime.fromISO(formikProps.values.subscriptionAt)
.setZone(customerTimezoneConfig.name)
.toFormat('T')} ${DateTime.fromISO(formikProps.values.subscriptionAt)
.setZone(customerTimezoneConfig.name)
.toFormat('a')}`
.setLocale('en')
.toFormat('t')}`
const offset = TimeZonesConfig[customerTimezone].offset

if (customerTimezoneConfig?.offsetInMinute < 0) {
Expand All @@ -168,9 +167,8 @@ export const AddSubscriptionDrawer = forwardRef<
.toFormat('LLL. dd, yyyy')
const time = `${DateTime.fromISO(formikProps.values.subscriptionAt)
.setZone(orgaTimezoneConfig.name)
.toFormat('T')} ${DateTime.fromISO(formikProps.values.subscriptionAt)
.setZone(orgaTimezoneConfig.name)
.toFormat('a')}`
.setLocale('en')
.toFormat('t')}`
const offset = TimeZonesConfig[organizationTimezone].offset

if (orgaTimezoneConfig.offsetInMinute < 0) {
Expand Down

0 comments on commit ea6285c

Please sign in to comment.