jeudi 28 septembre 2017

Laravel moment js time zone issue

In my laravel vue js app, I am inserting data using eloquent and create_at time is automatically populated by laravel. In my front end I am trying to show the create_at time as 'ago' time using moment js and for that I am using vue-moment.

This is how I am trying to show in my view

But the problem is it's shows the 6 hours ago even if I create an item few seconds ago and for my friend who lives in different country shows 12 hours ago.

How can I make this time perfect for everyone from any country?

Thank you.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ybov70
via IFTTT

Aucun commentaire:

Enregistrer un commentaire