Skip to content

Commit

Permalink
[fixed] properly compare TimeList labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Oct 3, 2015
1 parent 8bf29a1 commit 3fc44c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TimeList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module.exports = React.createClass({
if( !date) return null

date = new Date(Math.floor(date.getTime() / roundTo) * roundTo)
label = dates.format(date, this.props.format, this.props.culture)
label = localizers.date.format(date, format(this.props), this.props.culture)

times.some( time => {
if( time.label === label )
Expand Down

0 comments on commit 3fc44c3

Please sign in to comment.