remove flatpickr and changed hr and minutes

This commit is contained in:
sanjayk03-dev
2024-08-27 21:42:30 +05:30
parent 7a8945a0a2
commit 7556234188
3 changed files with 7 additions and 16 deletions

View File

@@ -40,7 +40,8 @@ module.exports = {
z_slider_variant: " ",
config: "",
selected_date: null,
selected_time: null,
selected_hours: null,
selected_minutes: null,
};
},
@@ -148,12 +149,12 @@ module.exports = {
},
change_date_time: async function () {
if (!this.selected_date || !this.selected_time) {
if (!this.selected_date || !this.selected_hours || !this.selected_minutes) {
return;
}
try {
const datetime = `${this.selected_date} ${this.selected_time}:00`;
const datetime = `${this.selected_date} ${this.selected_hours}:${this.selected_minutes}:00`;
const response = await api.put("time", { datetime });
if (response == "ok") {