Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(info-tab): Transform duration milliseconds to minutes and hours
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Jan 17, 2018
1 parent c6262cd commit c5c7b8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tabs/info/Info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</template>

<script>
import { calcHours, calcMinutes, localeDate, localeTime } from 'utils/time'
import { calcHours, calcMinutes, localeDate, localeTime, millisecondsToSeconds } from 'utils/time'
import CalendarIcon from 'icons/CalendarIcon.vue'
import ClockIcon from 'icons/ClockIcon.vue'
Expand All @@ -53,8 +53,8 @@
computed: {
episodeDuration () {
return {
hours: calcHours(this.duration),
minutes: calcMinutes(this.duration)
hours: calcHours(millisecondsToSeconds(this.duration)),
minutes: calcMinutes(millisecondsToSeconds(this.duration))
}
},
sectionStyle () {
Expand Down

0 comments on commit c5c7b8c

Please sign in to comment.