change date/time modal from using constant to config for dateFormat

This commit is contained in:
Ean Milligan 2024-05-21 03:55:34 -04:00
parent 74c5c6e4e9
commit f4c10e372d
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import config from '../../config.ts';
import { ActionRow, MessageComponentTypes, TextStyles } from '../../deps.ts';
import { LFGMember } from '../types/commandTypes.ts';
import { isDSTActive } from './event-creation/dateTimeUtils.ts';
@ -84,7 +85,7 @@ export const dateTimeFields = (prefillTime = '', prefillTimeZone = '', prefillDa
type: MessageComponentTypes.InputText,
customId: eventDateId,
label: 'Start Date:',
placeholder: 'Enter date as "MONTH/DAY/YEAR" or "Month Day, Year"',
placeholder: `Enter date as "${config.defaultDateFormat}" or "Month Day, Year"`,
style: TextStyles.Short,
minLength: 1,
maxLength: 20,