From 1fc7c382c1a90335365c25516619cfd30b9f439f Mon Sep 17 00:00:00 2001 From: jquense Date: Wed, 16 Sep 2015 12:16:52 +0300 Subject: [PATCH] [fixed] properly compare TimeList labels --- src/TimeList.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TimeList.jsx b/src/TimeList.jsx index a874a2ad0..9f74cdfe2 100644 --- a/src/TimeList.jsx +++ b/src/TimeList.jsx @@ -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 )