Skip to content

Commit

Permalink
Apply fixes from StyleCI (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Apr 14, 2020
1 parent 7c3a233 commit 85b62da
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions resources/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ export default {
});

let secondsElapsed = moment().diff(time, 'seconds');
let dayStart = moment('2018-01-01')
.startOf('day')
.seconds(secondsElapsed);
let dayStart = moment('2018-01-01').startOf('day').seconds(secondsElapsed);

if (secondsElapsed > 300) {
return moment(time).fromNow(true);
Expand All @@ -50,9 +48,7 @@ export default {
* Show the time in local time.
*/
localTime(time) {
return moment(time)
.local()
.format('MMMM Do YYYY, h:mm:ss A');
return moment(time).local().format('MMMM Do YYYY, h:mm:ss A');
},

/**
Expand Down

0 comments on commit 85b62da

Please sign in to comment.