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 Sep 16, 2015
1 parent be43cf3 commit 1fc7c38
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 1fc7c38

Please sign in to comment.