Skip to content

Commit

Permalink
fix missing seconds in analyze table
Browse files Browse the repository at this point in the history
  • Loading branch information
bmario committed Nov 4, 2024
1 parent b9c124c commit b355635
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/analyze-popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<popup-header :popup-title="popupTitle" />
<div class="modal-body">
<div class="mb-3 text-center">
Zeitraum von <b>{{ startTimeFormatted }}</b> bis <b>{{ endTimeFormatted }}</b> <span class="text-secondary">{{ timeLenghtFormatted }} Sekunden</span>
Zeitraum von <b>{{ startTimeFormatted }}</b> bis <b>{{ endTimeFormatted }}</b>, <span class="text-secondary">{{ durationFormatted }} Sekunden</span>
</div>
<analyzeTable />
</div>
Expand Down Expand Up @@ -45,6 +45,9 @@ export default {
endTimeFormatted () {
return new Date(this.timestamp.end).toLocaleString()
},
durationFormatted () {
return (this.timestamp.end - this.timestamp.start) / 1000
},
...mapState([
'timestamp'
])
Expand Down

0 comments on commit b355635

Please sign in to comment.