Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
[fixed] have gutter use culture prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Nov 29, 2015
1 parent 7922882 commit 4b3d3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TimeGutter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let TimeGutter = React.createClass({
},

render() {
let { min, max, step, timeGutterFormat } = this.props;
let { min, max, step, timeGutterFormat, culture } = this.props;
let today = new Date()
let totalMin = dates.diff(min, max, 'minutes')
let numSlots = Math.ceil(totalMin / step)
Expand All @@ -29,7 +29,7 @@ let TimeGutter = React.createClass({
})}
>
{ isEven && (
<span>{localizer.format(date, timeGutterFormat)}</span>
<span>{localizer.format(date, timeGutterFormat, culture)}</span>
)
}
</div>
Expand Down

0 comments on commit 4b3d3ba

Please sign in to comment.