mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
fix set today date timezone
This commit is contained in:
1 parent
d5b8640a0e
commit
309e43e18e
1 file changed
+1
-1
@@ -639,7 +639,7 @@ export default {
|
||||
setCurrentDate () {
|
||||
const inputEl = document.getElementById(this.currentField.uuid)
|
||||
|
||||
inputEl.valueAsDate = new Date()
|
||||
inputEl.valueAsDate = new Date(new Date().getTime() - new Date().getTimezoneOffset() * 60000)
|
||||
|
||||
inputEl.dispatchEvent(new Event('input', { bubbles: true }))
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user