diff --git a/src/component/event/events.ts b/src/component/event/events.ts index 5641d99..ffd8c06 100644 --- a/src/component/event/events.ts +++ b/src/component/event/events.ts @@ -95,10 +95,10 @@ export class Event implements TEventEntity { whereConditions.push( `notification IN ('${ options.notification.join("', '") }')` ) } if ( options.date ) { - whereConditions.push(`date_at = "${options.date.year}-${options.date.month}-${options.date.day}"`); + whereConditions.push(`date_at = "${options.date.year}-${pad_l2(options.date.month)}-${pad_l2(options.date.day)}"`); } if ( options.month ) { - whereConditions.push( `strftime('%Y-%m', date_at) = '${options.month.year}-${options.month.month}'`) + whereConditions.push( `strftime('%Y-%m', date_at) = '${options.month.year}-${pad_l2(options.month.month)}'`) } const where = ( () => {