Skip to content

Commit ff750fb

Browse files
committed
[BUGFIX] Also prefill datetime fields on US systems when going back from confirmation to form
Playing around helped me finding out that a "T" is missing if the OS is set to US language.
1 parent 08ab33f commit ff750fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resources/Private/Build/JavaScript/Form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class PowermailForm {
180180
if (type === 'date' || type === 'datetime-local' || type === 'time') {
181181
let formatOutput = 'YYYY-MM-DD';
182182
if (type === 'datetime-local') {
183-
formatOutput = 'YYYY-MM-DD HH:mm';
183+
formatOutput = 'YYYY-MM-DD\THH:mm';
184184
} else if (type === 'time') {
185185
formatOutput = 'HH:mm';
186186
}

Resources/Public/JavaScript/Powermail/Form.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)