Client: change date format
This commit is contained in:
parent
2e26a7005d
commit
bf7baacfbc
@ -58,7 +58,7 @@ export const formatActivityDate = activityDateTime => {
|
|||||||
if (activityDateTime) {
|
if (activityDateTime) {
|
||||||
const dateTime = parse(activityDateTime)
|
const dateTime = parse(activityDateTime)
|
||||||
return {
|
return {
|
||||||
activity_date: format(dateTime, 'YYYY-MM-DD'),
|
activity_date: format(dateTime, 'DD/MM/YYYY'),
|
||||||
activity_time: activityDateTime.match(/[0-2][0-9]:[0-5][0-9]/)[0]
|
activity_time: activityDateTime.match(/[0-2][0-9]:[0-5][0-9]/)[0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user