@osimatic/helpers-js 1.1.21 → 1.1.22

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.
Files changed (2) hide show
  1. package/date_time.js +4 -0
  2. package/package.json +1 -1
package/date_time.js CHANGED
@@ -244,10 +244,12 @@ class DateTime {
244
244
  jsDate.setHours(0);
245
245
  jsDate.setMinutes(0);
246
246
  jsDate.setSeconds(0);
247
+ jsDate.setMilliseconds(0);
247
248
  let today = new Date();
248
249
  today.setHours(0);
249
250
  today.setMinutes(0);
250
251
  today.setSeconds(0);
252
+ today.setMilliseconds(0);
251
253
  return jsDate.getTime() < today.getTime();
252
254
  }
253
255
 
@@ -255,10 +257,12 @@ class DateTime {
255
257
  jsDate.setHours(0);
256
258
  jsDate.setMinutes(0);
257
259
  jsDate.setSeconds(0);
260
+ jsDate.setMilliseconds(0);
258
261
  let today = new Date();
259
262
  today.setHours(0);
260
263
  today.setMinutes(0);
261
264
  today.setSeconds(0);
265
+ today.setMilliseconds(0);
262
266
  return jsDate.getTime() > today.getTime();
263
267
  }
264
268
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"