We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can make this to work with:
{{ $moment.utc(user.updated_at).local().fromNow() }} {{ $moment.utc(user.updated_at).local().format('L LTS') }}
But I would like to, instead, use something like:
{{ user.updated_at | moment('local', 'now') }} {{ user.updated_at | moment('local', 'L LTS') }}
The text was updated successfully, but these errors were encountered:
Any update?
Sorry, something went wrong.
I was looking for a way to achieve this. Ended up using a custom filter for now.
Vue.filter('utcAsLocal', function (value) { return moment.utc(value).local(); });
<div>{{ user.updated_at | utcAsLocal | moment('L LTS') }}</div>
I have created filter similar to moment. Inspired by comment above
Vue.filter('localMoment', function (date, format) { return moment.utc(date).local().format(format) })
Usage
<td>{{r.ORDER_DATE | localMoment('hh:mm DD-MMMM YYYY')}}</td>
No branches or pull requests
I can make this to work with:
But I would like to, instead, use something like:
The text was updated successfully, but these errors were encountered: