18 lines
335 B
JavaScript
18 lines
335 B
JavaScript
import '../../lib/utils/datetime_utility';
|
|
|
|
/**
|
|
* Mixin with time ago methods used in some vue components
|
|
*/
|
|
export default {
|
|
methods: {
|
|
timeFormated(time) {
|
|
const timeago = gl.utils.getTimeago();
|
|
|
|
return timeago.format(time);
|
|
},
|
|
|
|
tooltipTitle(time) {
|
|
return gl.utils.formatDate(time);
|
|
},
|
|
},
|
|
};
|