mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 03:32:40 +08:00
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:
parent
5463b845e3
commit
e987874204
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user