minor fix

This commit is contained in:
sanjayk03-dev
2024-08-28 11:52:49 +05:30
parent a056abc1a4
commit 21bb364440
2 changed files with 3 additions and 8 deletions

View File

@@ -40,13 +40,8 @@ module.exports = {
z_slider_variant: " ",
config: "",
selected_date: null,
now: new Date(),
current_date: `${(now.getMonth() + 1).toString().padStart(2, "0")}:${now
.getHours()
.toString()
.padStart(2, "0")}:${now.getFullYear()}`,
selected_hours: `${now.getMinutes()}`,
selected_minutes: `${now.getMinutes()}`,
selected_hours: `${new Date().getMinutes()}`,
selected_minutes: `${new Date().getMinutes()}`,
};
},

View File

@@ -67,7 +67,7 @@ script#admin-general-view-template(type="text/x-template")
h2 Date/Time
p
strong Current Date/Time:
| {{current_date}} {{selected_hours}}:{{selected_minutes}}
| {{`${new Date}`.split(' ').slice(1,5).join(' ')}}
.pure-form
input(id="date" type="date" v-model="selected_date")
input(id="hours" type="text" v-model="selected_hours" placeholder="HH" maxlength="2" min="0" max="23" style="width:45px")