Fix issue with rendering timestamps

This commit is contained in:
Nat 2021-05-14 14:38:01 -03:00
parent 1dc775004e
commit 98adb8dbff
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ export const RawPostJsx = (props) => {
</TouchableWithoutFeedback> </TouchableWithoutFeedback>
<Text style = { styles.captionDate }> <Text style = { styles.captionDate }>
{ timeToAge((new Date()).getTime(), props.data.created_at) } { timeToAge(Date.now(), (new Date(props.data.created_at)).getTime()) }
</Text> </Text>
</View> </View>
</View> </View>
@ -220,7 +220,7 @@ const styles = {
color: "#666", color: "#666",
}, },
captionDate: { captionDate: {
fontSize: 0.8, fontSize: 12,
color: "#666", color: "#666",
paddingTop: 10 paddingTop: 10
}, },