Client: change date format

This commit is contained in:
Sam 2018-06-05 17:42:47 +02:00
parent 2e26a7005d
commit bf7baacfbc

View File

@ -58,7 +58,7 @@ export const formatActivityDate = activityDateTime => {
if (activityDateTime) {
const dateTime = parse(activityDateTime)
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]
}
}