feat: use AI to migrate DateTimePicker component
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user