mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
select us date format
This commit is contained in:
1 parent
7c4307ef10
commit
6b5adc2504
2 files changed
+4
-4
No files matched your search
@@ -339,7 +339,7 @@ export default {
|
||||
|
||||
if (this.field.type === 'date') {
|
||||
this.field.preferences.format ||=
|
||||
(Intl.DateTimeFormat().resolvedOptions().locale.endsWith('-US') ? 'MM/DD/YYYY' : 'DD/MM/YYYY')
|
||||
(Intl.DateTimeFormat().resolvedOptions().locale.endsWith('-US') || new Intl.DateTimeFormat('en-US', { timeZoneName: 'short' }).format(new Date()).match(/\s(?:CST|CDT|PST|PDT|EST|EDT)$/) ? 'MM/DD/YYYY' : 'DD/MM/YYYY')
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in new issue
Block a user