Fix/app logs today filter (#689)

This commit is contained in:
zxhlyh
2023-07-31 13:30:04 +08:00
committed by GitHub
parent 0c18cab111
commit a0bd15245a
3 changed files with 1278 additions and 327 deletions

View File

@@ -63,7 +63,7 @@ const Logs: FC<ILogsProps> = ({ appId }) => {
limit,
...(queryParams.period !== 'all'
? {
start: dayjs().subtract(queryParams.period as number, 'day').format('YYYY-MM-DD HH:mm'),
start: dayjs().subtract(queryParams.period as number, 'day').startOf('day').format('YYYY-MM-DD HH:mm'),
end: dayjs().format('YYYY-MM-DD HH:mm'),
}
: {}),