@bbn/bbn 2.0.15 → 2.0.16

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/dist/date.js CHANGED
@@ -1076,7 +1076,7 @@ class bbnDateTool {
1076
1076
  if (!__classPrivateFieldGet(this, _bbnDateTool_value, "f")) {
1077
1077
  return '';
1078
1078
  }
1079
- const opt = Object.assign(Object.assign({ year: 'numeric', month: long ? 'long' : 'short', day: 'numeric' }, (weekday ? { weekday: 'long' } : {})), (withTime ? { hour: '2-digit', minute: '2-digit' } : {}));
1079
+ const opt = Object.assign(Object.assign({ year: 'numeric', month: long ? 'long' : 'numeric', day: 'numeric' }, (weekday ? { weekday: (long ? 'long' : 'short') } : {})), (withTime ? { hour: (long ? '2-digit' : 'numeric'), minute: '2-digit' } : {}));
1080
1080
  const d = new Intl.DateTimeFormat([bbn.env.lang, ...navigator.languages], opt);
1081
1081
  return d.format(__classPrivateFieldGet(this, _bbnDateTool_value, "f"));
1082
1082
  }
@@ -19,6 +19,6 @@ export default function fdate(d, wrong_result = false) {
19
19
  if (!r.isValid) {
20
20
  return wrong_result && isString(wrong_result) ? wrong_result : '';
21
21
  }
22
- return r.fdate(true, time);
22
+ return r.fdate(false, time);
23
23
  }
24
24
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",