FIX: Dashboard last checked date was always English (#30569)

The `problemsTimestamp` on the admin dashboard was always
forcing the "en" locale for some reason, we can remove the locale
entirely because we already set the locale for moment.js using
I18n on the server-side.

c.f. https://meta.discourse.org/t/last-check-date-not-localized-in-admin-dashboard/345483
This commit is contained in:
Martin Brennan 2025-01-06 14:59:21 +10:00 committed by GitHub
parent 5463b845e3
commit e987874204
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,7 @@ export default class AdminDashboardController extends Controller {
@discourseComputed("problemsFetchedAt")
problemsTimestamp(problemsFetchedAt) {
return moment(problemsFetchedAt).locale("en").format("LLL");
return moment(problemsFetchedAt).format("LLL");
}
@action