@bbn/bbn 1.0.457 → 1.0.458

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.
@@ -1,4 +1,3 @@
1
- import fdatetime from './fdatetime.js';
2
1
  import date from '../../date.js';
3
2
  import isString from '../type/isString.js';
4
3
  /**
@@ -12,13 +11,14 @@ import isString from '../type/isString.js';
12
11
  */
13
12
  export default function fdate(d, wrong_result = false) {
14
13
  let r = date(d);
14
+ let time = false;
15
15
  // Retro compatibility
16
16
  if (wrong_result === true) {
17
- return fdatetime(d);
17
+ time = true;
18
18
  }
19
19
  if (!r.isValid) {
20
20
  return wrong_result && isString(wrong_result) ? wrong_result : '';
21
21
  }
22
- return r.fdate(true);
22
+ return r.fdate(true, time);
23
23
  }
24
24
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.457",
3
+ "version": "1.0.458",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",