@bigbinary/neeto-commons-frontend 2.0.70 → 2.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/utils.d.ts CHANGED
@@ -147,6 +147,7 @@ export const timeFormat: {
147
147
  dateTimeWithSeconds: (time: DateTimeType) => string;
148
148
  dateWeekTime: (time: DateTimeType) => string;
149
149
  extended: (time: DateTimeType) => string;
150
+ default: (time: DateTimeType) => string;
150
151
  };
151
152
  export const dateFormat: typeof timeFormat;
152
153
  /**
package/utils.js CHANGED
@@ -2675,6 +2675,10 @@ var timeFormat = {
2675
2675
  var dateTime = dayjs(time).format("dddd MMMM D, YYYY h:mm A");
2676
2676
  var fromNow = dayjs(time).fromNow();
2677
2677
  return "".concat(dateTime, " (").concat(fromNow, ")");
2678
+ },
2679
+ "default": function _default(time) {
2680
+ var _globalProps$user$dat, _globalProps, _globalProps$user;
2681
+ return dayjs(time).format((_globalProps$user$dat = (_globalProps = globalProps) === null || _globalProps === void 0 ? void 0 : (_globalProps$user = _globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.dateFormat) !== null && _globalProps$user$dat !== void 0 ? _globalProps$user$dat : "DD/MM/YYYY");
2678
2682
  }
2679
2683
  };
2680
2684
  var dateFormat = timeFormat;