From abe5b072457e0036b36dae21219aa2b4e9a07af3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 31 Jan 2022 20:18:15 -0600 Subject: [PATCH] Format birthday as UTC --- app/soapbox/features/ui/components/profile_info_panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/ui/components/profile_info_panel.js b/app/soapbox/features/ui/components/profile_info_panel.js index 6b35c601e..8cd4dfb5d 100644 --- a/app/soapbox/features/ui/components/profile_info_panel.js +++ b/app/soapbox/features/ui/components/profile_info_panel.js @@ -86,7 +86,7 @@ class ProfileInfoPanel extends ImmutablePureComponent { const birthday = account.getIn(['pleroma', 'birthday']); if (!birthday) return null; - const formattedBirthday = intl.formatDate(birthday, { day: 'numeric', month: 'long', year: 'numeric' }); + const formattedBirthday = intl.formatDate(birthday, { timeZone: 'UTC', day: 'numeric', month: 'long', year: 'numeric' }); const date = new Date(birthday); const today = new Date();