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 0907e62 commit ad5dba1Copy full SHA for ad5dba1
src/CalendarStrip.js
@@ -194,8 +194,11 @@ class CalendarStrip extends Component {
194
//Function that checks if the locale is passed to the component and sets it to the passed date
195
setLocale = date => {
196
let _date = date && moment(date);
197
- if (this.props.locale && _date) {
198
- _date = _date.locale(this.props.locale.name);
+ if (_date) {
+ _date.set({ hour: 12}); // keep date the same regardless of timezone shifts
199
+ if (this.props.locale) {
200
+ _date = _date.locale(this.props.locale.name);
201
+ }
202
}
203
return _date;
204
0 commit comments