Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mduthilleul committed Nov 24, 2017
1 parent 17f48b3 commit e611230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dashboard/BuildView.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class BuildView extends PureComponent<Props, void> {
render() {
const { build } = this.props
const date = new Date(build.started_on_worker_at)
const f = (number: number) => number.toString().padStart(2, '0')
const f = (number: number) => (number < 10 ? `0${number}` : number.toString())
const dateString = `${date.getFullYear()}.${f(date.getMonth())}.${f(date.getDate())} @ ${f(date.getHours())}:${f(date.getMinutes())}`
let durationString = null
if (build.finished_at) {
Expand Down

0 comments on commit e611230

Please # to comment.