sf-i-events 1.0.203 → 1.0.205
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 +1 -1
- package/sf-i-events.js +2 -2
- package/sf-i-events.js.map +1 -1
- package/src/sf-i-events.ts +2 -2
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -3049,7 +3049,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
};
|
|
3051
3051
|
this.checkEndDateLateness = (value) => {
|
|
3052
|
-
var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
3052
|
+
var endDateCalendar = new Date(this.calendarStartMM + '/' + (this.calendarStartDD + 10) + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
3053
3053
|
var endDateChosen = new Date(value);
|
|
3054
3054
|
console.log('end date calendar', endDateCalendar);
|
|
3055
3055
|
console.log('end date chosen', endDateChosen);
|
|
@@ -6586,7 +6586,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6586
6586
|
const ts = new Date().getTime();
|
|
6587
6587
|
var html = this.COMPLIANCES_HTML;
|
|
6588
6588
|
html = html.replace(/PROJECT_NAME/g, this.projectName);
|
|
6589
|
-
html = html.replace(/REPORT_DATE/g, new Date().getDate() + "/" + new Date().getMonth() + "/" + new Date().getFullYear() + " " + new Date().getHours() + ":" + new Date().getMinutes());
|
|
6589
|
+
html = html.replace(/REPORT_DATE/g, new Date().getDate() + "/" + (new Date().getMonth() + 1) + "/" + new Date().getFullYear() + " " + new Date().getHours() + ":" + new Date().getMinutes());
|
|
6590
6590
|
html = html.replace(/PERSON_COMPLIANCES/g, this.htmlDataCompliances);
|
|
6591
6591
|
const blob = new Blob([html], { type: 'text/html' });
|
|
6592
6592
|
const url = window.URL.createObjectURL(blob);
|