docs(options):Ensures UI descriptions accurately reflect Day.js handling of

unrecognized format
This commit is contained in:
iamvann 2025-05-17 01:26:26 +08:00
parent 26f6c28c71
commit 2844331f10

View File

@ -9,11 +9,13 @@ const TPL = `
Uses <a href="https://day.js.org/docs/en/display/format" target="_blank" rel="noopener noreferrer">Day.js format tokens</a>.
Refer to the Day.js documentation for valid tokens.
</p>
<p>
<strong>Important:</strong> If you provide a string that Day.js cannot interpret as a format,
the literal string you typed might be inserted. If the format string is empty, or if Day.js
encounters an internal error with your format, a default format (e.g., YYYY-MM-DD HH:mm) will be used.
</p>
<p>
<strong>Important:</strong> If you provide a format string that Day.js does not recognize
(e.g., mostly plain text without valid <a href="https://day.js.org/docs/en/display/format" target="_blank" rel="noopener noreferrer">Day.js tokens</a>),
the text you typed might be inserted literally. If the format string is left empty,
or if Day.js encounters a critical internal error with your format,
a default format (e.g., YYYY-MM-DD HH:mm) will be used.
</p>
<div class="form-group">
<label for="customDateTimeFormatInput" style="margin-right: 10px;">Format String:</label>