Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 735 | Rev 737 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 735 Rev 736
Línea 58... Línea 58...
58
        dispatch(addNotification({ style: 'danger', msg: err.message }))
58
        dispatch(addNotification({ style: 'danger', msg: err.message }))
59
      })
59
      })
60
  }
60
  }
Línea 61... Línea 61...
61
 
61
 
-
 
62
  const formatDate = (date) => {
-
 
63
    const dateObj = new Date(date)
-
 
64
 
-
 
65
    if (isNaN(dateObj)) {
-
 
66
      return date
-
 
67
    }
62
  const formatDate = (date) => {
68
 
63
    return new Intl.DateTimeFormat('en-US', { timeStyle: 'medium' }).format(
69
    return new Intl.DateTimeFormat('en-US', { timeStyle: 'medium' }).format(
64
      date
70
      date
65
    )
71
    )