Closed Bug 1836433 Opened 2 years ago Closed 2 years ago

[de] Wrong date format used for next payment on https://subscriptions.firefox.com/subscriptions

Categories

(Cloud Services :: Server: Firefox Accounts, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: rmuhl)

Details

When checking the subscriptions page the next payment date is wrongly displayed when having the German translation of the page. There it looks like:

Ihre nächste Rechnung über ⁨59,88 €⁩ ist am ⁨06/02/2024⁩ fällig

Note that in German we do not have the month first but the day. The above date would instead mean the 6th of February, which is kinda confusing for subscribers.

The severity field is not set for this bug.
:markh, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(markh)
Component: Firefox Accounts → Server: Firefox Accounts
Flags: needinfo?(markh)
Product: Firefox → Cloud Services

Thank you for filing, we are looking into the issue and will report back with an update shortly.

This doesn't appear to be an issue with the localized string itself, but the incorrectly formatted date is being passed to it.

It seems like this is the culprit:
https://github.com/mozilla/fxa/blob/79bc2beb63b619d4a9b57fa33e4602ef958a895a/packages/fxa-payments-server/src/routes/Subscriptions/Cancel/CancelSubscriptionPanel.tsx#L73

getLocalizedDateString only returns an en locale formatted date (for fallback strings).
https://github.com/mozilla/fxa/blob/79bc2beb63b619d4a9b57fa33e4602ef958a895a/packages/fxa-payments-server/src/lib/formats.ts#L98-L115

Thanks Bryan! We have a fix that will be up for review shortly. Ideally this bug will be resolved in production when our current train ships on 28 June.

Assignee: nobody → rmuhl
Status: NEW → ASSIGNED

This fix will be in Production Wednesday 28 June. Marking "Done" - thanks again for the report.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.