+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
jQuery(function($){
$(document).on('ajax:complete arv:pane:loaded ready', function() {
$('[data-utc-date]').each(function(i, elm) {
if ($(elm).attr('data-utc-date-opts') && $(elm).attr('data-utc-date-opts').match(/noseconds/)) {
$(elm).text((ts.getHours() > 12 ? (ts.getHours()-12) : ts.getHours())
+ ":" + (ts.getMinutes() < 10 ? '0' : '') + ts.getMinutes()
- + (ts.getHours() > 12 ? " PM " : " AM ")
+ + (ts.getHours() >= 12 ? " PM " : " AM ")
+ ts.toLocaleDateString());
} else {
$(elm).text(ts.toLocaleTimeString() + " " + ts.toLocaleDateString());