@ansible/ansible-ui-framework 0.0.414 → 0.0.416

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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "0.0.414",
4
+ "version": "0.0.416",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "repository": {