1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix toot relative time does not align with app's language

This commit is contained in:
xmflsct
2022-12-03 21:56:52 +01:00
parent 0fd3fcfd3f
commit 7421ffd1bc
4 changed files with 19 additions and 18 deletions

View File

@ -9,7 +9,7 @@ export interface Props {
const RelativeTime: React.FC<Props> = ({ time }) => {
const [now, setNow] = useState(new Date().getTime())
useEffect(() => {
const appStateListener = AppState.addEventListener('change', state => {
const appStateListener = AppState.addEventListener('change', () => {
setNow(new Date().getTime())
})