diff --git a/client/src/utils/index.js b/client/src/utils/index.js index 85e5928d7..4aee66165 100644 --- a/client/src/utils/index.js +++ b/client/src/utils/index.js @@ -1,5 +1,6 @@ export const toLocalTime = (epoch) => { let localDate = new Date(0) localDate.setUTCSeconds(epoch) - return localDate.toString() + var options = { year: 'numeric', month: 'long', day: '2-digit' } + return localDate.toLocaleDateString(options) + ' ' + localDate.toLocaleTimeString('en-US') }