Fix/app logs today filter (#689)

This commit is contained in:
zxhlyh 2023-07-31 13:30:04 +08:00 • committed by GitHub
commit a0bd15245a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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'),
}
: {}),