We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9188d3b commit ddda624Copy full SHA for ddda624
1 file changed
app/components/InterviewScheduleSidebar.vue
@@ -51,9 +51,12 @@ const selectedTemplateName = computed(() => {
51
})
52
53
// Set a sensible default title
54
-// Helper to extract YYYY-MM-DD from a Date object
+// Helper to extract YYYY-MM-DD from a Date object in local timezone
55
function toDateString(d: Date): string {
56
- return d.toISOString().slice(0, 10)
+ const year = d.getFullYear()
57
+ const month = String(d.getMonth() + 1).padStart(2, '0')
58
+ const day = String(d.getDate()).padStart(2, '0')
59
+ return `${year}-${month}-${day}`
60
}
61
62
onMounted(() => {
0 commit comments