From bd58d54da4b7cabf98c711e088912dfbe99abdda Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 23 Sep 2023 11:05:26 +0200 Subject: [PATCH 1/4] fix: fix wrong date function in GitCommitsList Signed-off-by: Stefan Dej --- src/components/panels/Machine/UpdatePanel/GitCommitsList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/panels/Machine/UpdatePanel/GitCommitsList.vue b/src/components/panels/Machine/UpdatePanel/GitCommitsList.vue index cf1624b40..34647928d 100644 --- a/src/components/panels/Machine/UpdatePanel/GitCommitsList.vue +++ b/src/components/panels/Machine/UpdatePanel/GitCommitsList.vue @@ -83,7 +83,7 @@ export default class GitCommitsList extends Mixins(BaseMixin) { if ( commitDate.getFullYear() !== lastCommitDate.getFullYear() || commitDate.getMonth() !== lastCommitDate.getMonth() || - commitDate.getDay() !== lastCommitDate.getDay() + commitDate.getDate() !== lastCommitDate.getDate() ) { output.push({ date: commitDate, From 676c75676daaf6fc60329c6ff9e857c15c58e229 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 23 Sep 2023 11:05:42 +0200 Subject: [PATCH 2/4] fix: fix wrong date function in ConfigFilesPanel Signed-off-by: Stefan Dej --- src/components/panels/Machine/ConfigFilesPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/panels/Machine/ConfigFilesPanel.vue b/src/components/panels/Machine/ConfigFilesPanel.vue index b0463caf0..135716360 100644 --- a/src/components/panels/Machine/ConfigFilesPanel.vue +++ b/src/components/panels/Machine/ConfigFilesPanel.vue @@ -1050,7 +1050,7 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) { const date = new Date() const month = (date.getMonth() + 1).toString().padStart(2, '0') - const day = date.getDay().toString().padStart(2, '0') + const day = date.getDate().toString().padStart(2, '0') const hours = date.getHours().toString().padStart(2, '0') const minutes = date.getMinutes().toString().padStart(2, '0') const seconds = date.getSeconds().toString().padStart(2, '0') From 99de5e767615f76c0e492e635109582da0b2c6ad Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 23 Sep 2023 11:05:59 +0200 Subject: [PATCH 3/4] fix: fix wrong date function in TimelapseFilesPanel Signed-off-by: Stefan Dej --- src/components/panels/Timelapse/TimelapseFilesPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/panels/Timelapse/TimelapseFilesPanel.vue b/src/components/panels/Timelapse/TimelapseFilesPanel.vue index bf9313287..06456d7f5 100644 --- a/src/components/panels/Timelapse/TimelapseFilesPanel.vue +++ b/src/components/panels/Timelapse/TimelapseFilesPanel.vue @@ -746,7 +746,7 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) { await addElementToItems(this.currentPath, this.selectedFiles) const date = new Date() - const timestamp = `${date.getFullYear()}${date.getMonth()}${date.getDay()}-${date.getHours()}${date.getMinutes()}${date.getSeconds()}` + const timestamp = `${date.getFullYear()}${date.getMonth()}${date.getDate()}-${date.getHours()}${date.getMinutes()}${date.getSeconds()}` this.$socket.emit( 'server.files.zip', From c9f38c5c03835a1cbe31b4403af225b5f3bac42e Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 23 Sep 2023 11:06:12 +0200 Subject: [PATCH 4/4] fix: fix wrong date function in GcodefilesPanel Signed-off-by: Stefan Dej --- src/components/panels/GcodefilesPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/panels/GcodefilesPanel.vue b/src/components/panels/GcodefilesPanel.vue index 084d55ce7..ccdf50383 100644 --- a/src/components/panels/GcodefilesPanel.vue +++ b/src/components/panels/GcodefilesPanel.vue @@ -1322,7 +1322,7 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) { await addElementToItems('gcodes/' + this.currentPath, this.selectedFiles) const date = new Date() - const timestamp = `${date.getFullYear()}${date.getMonth()}${date.getDay()}-${date.getHours()}${date.getMinutes()}${date.getSeconds()}` + const timestamp = `${date.getFullYear()}${date.getMonth()}${date.getDate()}-${date.getHours()}${date.getMinutes()}${date.getSeconds()}` this.$socket.emit( 'server.files.zip',