mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix
This commit is contained in:
@@ -90,3 +90,11 @@ export const formatSeconds = (seconds: number) => {
|
|||||||
|
|
||||||
return formattedTime;
|
return formattedTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// YYYY-MM-DD 转化为Date
|
||||||
|
export const parseDate = (dateString: string): Date => {
|
||||||
|
if (!dateString) return new Date();
|
||||||
|
const [year, month, day] = dateString.split('-').map(Number);
|
||||||
|
return new Date(year, month - 1, day);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user