Fix issue with rendering timestamps
This commit is contained in:
parent
1dc775004e
commit
98adb8dbff
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue