feat: use AI to migrate DateTimePicker component

This commit is contained in:
2026-07-09 16:09:14 +08:00
parent 91317c9eb7
commit e6fc06c0f9
7 changed files with 772 additions and 84 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export function format(str: string, ...args: any[]): string {
* @returns The zero-based weekday. 0 stands for Monday.
*/
export function getWeekday(date: Date): number {
let day = date.getDay();
const day = date.getDay();
if (day == 0) return 6;
else return day - 1;
}