]> git.r.bdr.sh - rbdr/dasein/blob - app/filters/datetime.js
e4bf4328cda68c361f75ac5500e220c4462c12d1
[rbdr/dasein] / app / filters / datetime.js
1 import Vue from 'vue';
2
3 const internals = {};
4
5 export default internals.DatetimeFilter = Vue.filter('datetime', (timestamp) => {
6
7 const date = new Date(parseInt(timestamp));
8
9 return date.toISOString();
10 });