Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

186
Vistas
Quasar framework- Vue js Date setting error
<q-separator class="divider" size="10px" color="grey-2" />
<q-list separator>
  <q-item 
  v-for="nweet in nweets"
  :key="nweet.date"
  class="q-py-md"
  

    <
      <q-item-label class="nweet-content">{{ nweet.content }}</q-item-label
      >
      <
    </q-item-section>

    <q-item-section side top> 
      {{ nweet.date | relativeDate }} 

    </q-item-section>
  </q-item>
</q-list>

I am facing a problem with {{ nweet.date | relativeDate }} It's giving me [vue/no-deprecated-filter] Filters are deprecated. Error. Please help

here is script

 <script>



import { formatDistance } from 'date-fns'




export default {
name: "PageHome",
data() {
return {
  newNweetContent: '',
  nweets: [
    {
      content: 'Hello world!',
      date: 1983230426
    },
    {
      content: 'Hello world!',
      date: 1983335689
    }

  ]
  
};},


filters: {
  relativeDate(value) {
    return formatDistance(value, new Date())
 }

} }

Is there any other way to set date? Can you tell me how I can use other thing. I mean can I use other library like date-fns. If yes how I can use it? Any help will be appreciated

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda