@ansible/ansible-ui-framework 0.0.415 → 0.0.417
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
|
|
1
|
+
export declare function formatDateString(dateObj: string | Date): string;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
// TODO: Import/adapt this from AWX using the new transaltion library
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.formatDateString = void 0;
|
5
|
+
function formatDateString(dateObj) {
|
6
|
+
if (typeof dateObj === 'string') {
|
7
|
+
dateObj = new Date(dateObj);
|
8
|
+
}
|
9
|
+
return dateObj.toLocaleString();
|
10
|
+
}
|
11
|
+
exports.formatDateString = formatDateString;
|