We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d214d65 commit 3a557b6Copy full SHA for 3a557b6
CHANGELOG.md
@@ -1,5 +1,8 @@
1
Changelog
2
=========
3
+## 3.0.3
4
+* Localize AM and PM strings
5
+
6
## 3.0.2
7
* Fixes typescript typings not being exposed publicly
8
src/datetime/TimeView.js
@@ -86,8 +86,13 @@ export default class TimeView extends React.Component {
86
}
87
88
89
- if ( type === 'ampm' && this.props.timeFormat.indexOf(' A') !== -1 ) {
90
- value = value.toUpperCase();
+ if ( type === 'ampm' ) {
+ if ( this.props.timeFormat.indexOf(' A') !== -1 ) {
91
+ value = this.props.viewDate.format('A');
92
+ }
93
+ else {
94
+ value = this.props.viewDate.format('a');
95
96
97
98
return (
0 commit comments