Skip to content

Commit

Permalink
Remove hard-coded formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkylights23 committed Apr 20, 2021
1 parent c4f4949 commit e4c92d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/countdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ class Countdown extends TimeeBase {

get current() {
return {
duration: this.duration.format(),
elapsed: this.elapsed.format(),
remaining: this.remaining.format(),
accumulated: this.accumulated.format(),
duration: this.duration,
elapsed: this.elapsed,
remaining: this.remaining,
accumulated: this.accumulated,
paused: this.paused,
completed: this.completed
}
Expand Down
4 changes: 2 additions & 2 deletions src/rateTicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ class RateTicker extends TimeeBase {

get current() {
return {
elapsed: this.elapsed.format('HH:mm:ss'),
accumulated: this.accumulated.format('HH:mm:ss'),
elapsed: this.elapsed,
accumulated: this.accumulated,
effectiveRate: this.effectiveRate,
perSecond: this.perSecond,
paused: this.paused
Expand Down
6 changes: 3 additions & 3 deletions src/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class Timer extends TimeeBase {

get current() {
return {
elapsed: this.elapsed.format('HH:mm:ss.SSS'),
accumulated: this.accumulated.format('HH:mm:ss.SSS'),
laps: this.laps.map(l => l.format('HH:mm:ss.SSS')),
elapsed: this.elapsed,
accumulated: this.accumulated,
laps: this.laps,
paused: this.paused
}
}
Expand Down

0 comments on commit e4c92d3

Please sign in to comment.