this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix wrong month shown for different system date formats

+7 -7
+7 -7
src/pages/account-statuses.jsx
··· 377 377 } 378 378 : {}, 379 379 ); 380 + const [year, month] = value.split('-'); 381 + const monthIndex = parseInt(month, 10) - 1; 382 + const date = new Date(year, monthIndex); 380 383 showToast( 381 - `Showing posts in ${new Date(value).toLocaleString( 382 - 'default', 383 - { 384 - month: 'long', 385 - year: 'numeric', 386 - }, 387 - )}`, 384 + `Showing posts in ${date.toLocaleString('default', { 385 + month: 'long', 386 + year: 'numeric', 387 + })}`, 388 388 ); 389 389 }} 390 390 />