ballerina-core 1.0.233 → 1.0.234

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ballerina-core",
3
3
  "author": "Dr. Giuseppe Maggiore",
4
4
  "private": false,
5
- "version": "1.0.233",
5
+ "version": "1.0.234",
6
6
  "main": "main.ts",
7
7
  "scripts": {
8
8
  "prettier": "prettier --write ."
@@ -575,12 +575,18 @@ export type BinaryOperator = (typeof BinaryOperators)[number];
575
575
 
576
576
  export type Bindings = Map<string, PredicateValue>;
577
577
 
578
+ const defaultPredicateDate = () => {
579
+ const d = new Date();
580
+ d.setUTCHours(0, 0, 0, 0);
581
+ return d;
582
+ };
583
+
578
584
  export const PredicateValue = {
579
585
  Default: {
580
586
  string: () => "",
581
587
  number: () => 0,
582
588
  boolean: () => false,
583
- date: () => new Date(),
589
+ date: () => defaultPredicateDate(),
584
590
  unit: (): ValueUnit => ({ kind: "unit" }),
585
591
  tuple: (values: List<PredicateValue>): ValueTuple => ({
586
592
  kind: "tuple",