scheduler-node-models 1.0.107 → 1.0.108

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-node-models",
3
- "version": "1.0.107",
3
+ "version": "1.0.108",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -804,6 +804,8 @@ class Employee {
804
804
  * @returns The numeric value for the total hours of actual work
805
805
  */
806
806
  getWorkedHours(start, end, chgno, ext) {
807
+ start = new Date(Date.UTC(start.getFullYear(), start.getMonth(), start.getDate()));
808
+ end = new Date(Date.UTC(end.getFullYear(), end.getMonth(), end.getDate()));
807
809
  let answer = 0.0;
808
810
  if (this.work) {
809
811
  this.work.forEach(wk => {