Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Commit 23833b1

Browse files
author
Dominik Dabrowski
committed
Made hour picker 24 hours
1 parent 479e954 commit 23833b1

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

lib/DateTimePickerTime.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ var DateTimePickerTime = (function (_Component) {
128128
_react2["default"].createElement(
129129
"span",
130130
{ className: "timepicker-hour", onClick: _this.showHours },
131-
_this.props.selectedDate.format("h")
131+
_this.props.selectedDate.format("H")
132132
)
133133
),
134134
_react2["default"].createElement(
@@ -144,16 +144,6 @@ var DateTimePickerTime = (function (_Component) {
144144
{ className: "timepicker-minute", onClick: _this.showMinutes },
145145
_this.props.selectedDate.format("mm")
146146
)
147-
),
148-
_react2["default"].createElement("td", { className: "separator" }),
149-
_react2["default"].createElement(
150-
"td",
151-
null,
152-
_react2["default"].createElement(
153-
"button",
154-
{ className: "btn btn-primary", onClick: _this.props.togglePeriod, type: "button" },
155-
_this.props.selectedDate.format("A")
156-
)
157147
)
158148
),
159149
_react2["default"].createElement(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-bootstrap-datetimepicker",
3-
"version": "0.0.20",
3+
"version": "0.0.21",
44
"description": "A bootstrap datetime picker component for React.js",
55
"homepage": "http://dev.quri.com/react-bootstrap-datetimepicker/",
66
"repository": {

src/DateTimePickerTime.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,11 @@ export default class DateTimePickerTime extends Component {
7575
</tr>
7676

7777
<tr>
78-
<td><span className="timepicker-hour" onClick={this.showHours}>{this.props.selectedDate.format("h")}</span></td>
78+
<td><span className="timepicker-hour" onClick={this.showHours}>{this.props.selectedDate.format("H")}</span></td>
7979

8080
<td className="separator">:</td>
8181

8282
<td><span className="timepicker-minute" onClick={this.showMinutes}>{this.props.selectedDate.format("mm")}</span></td>
83-
84-
<td className="separator"></td>
85-
86-
<td><button className="btn btn-primary" onClick={this.props.togglePeriod} type="button">{this.props.selectedDate.format("A")}</button></td>
8783
</tr>
8884

8985
<tr>

0 commit comments

Comments
 (0)