Merge branch 'birthday-utc' into 'develop'
Format birthday as UTC, fixes #821 Closes #821 See merge request soapbox-pub/soapbox-fe!1023
This commit is contained in:
commit
8134d27c10
|
@ -86,7 +86,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||||
const birthday = account.getIn(['pleroma', 'birthday']);
|
const birthday = account.getIn(['pleroma', 'birthday']);
|
||||||
if (!birthday) return null;
|
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 date = new Date(birthday);
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
|
|
Loading…
Reference in New Issue