12033: Ensure current Rails login is always in sessions list.
[arvados.git] / apps / workbench / app / assets / javascripts / components / date.js
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 window.components = window.components || {}
6 window.components.datetime = {
7     view: function(vnode) {
8         return m('span', new Date(Date.parse(vnode.attrs.parse)).toLocaleString())
9     },
10 }