fix timepicker

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-03-09 13:48:02 +01:00
parent c9cf7901ad
commit 0f9e5f6e93
9 changed files with 174 additions and 189 deletions

View File

@@ -24,11 +24,13 @@ const zGscDateInput = z.object({
projectId: z.string(),
range: zRange,
interval: zTimeInterval.optional().default('day'),
startDate: z.string().nullish(),
endDate: z.string().nullish(),
});
async function resolveDates(
projectId: string,
input: { range: string; startDate?: string; endDate?: string }
input: { range: string; startDate?: string | null; endDate?: string | null }
) {
const { timezone } = await getSettingsForProject(projectId);
const { startDate, endDate } = getChartStartEndDate(