Skip to content

Commit

Permalink
Logs: fix filtering by date
Browse files Browse the repository at this point in the history
  • Loading branch information
lukarenko committed Apr 30, 2024
1 parent cae1897 commit e8a19d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/pages/logs-book/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@
name: row.name,
from: row.from,
to: row.to,
fromTime: dateFormatUTC(row.started),
toTime: dateFormatUTC(row.ended),
fromTime: row.started,
toTime: row.ended,
distance_format: parseFloat(parseFloat(row.distance).toFixed(2)) + ' NM',
duration_format: parseInt(durationHours(row.duration)) + ' h',
distance: distanceFormat(row.distance),
Expand Down
8 changes: 2 additions & 6 deletions src/pages/logs-book/widgets/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,8 @@
{{ value }}
</router-link>
</template>
<template #cell(fromTime)="{ value }">
{{ value }}
</template>
<template #cell(toTime)="{ value }">
{{ value }}
</template>
<template #cell(fromTime)="{ value }"> dateFormatUTC({{ value }}) </template>
<template #cell(toTime)="{ value }"> dateFormatUTC({{ value }}) </template>
<template #cell(distance)="{ value }">
{{ value }}
</template>
Expand Down

0 comments on commit e8a19d4

Please sign in to comment.