@hipay/hipay-material-ui 3.4.0 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -378,8 +378,8 @@ function (_React$Component) {
378
378
  });
379
379
 
380
380
  if (selectedOption) {
381
- this.props.onChange('from', new Date(selectedOption.from.format('YYYY-MM-DD HH:mm:ss')));
382
- this.props.onChange('to', new Date(selectedOption.to.format('YYYY-MM-DD HH:mm:ss')));
381
+ this.props.onChange('from', selectedOption.from.toDate());
382
+ this.props.onChange('to', selectedOption.to.toDate());
383
383
  this.props.onChange('fromError', false);
384
384
  this.props.onChange('toError', false);
385
385
  }
@@ -378,8 +378,8 @@ function (_React$Component) {
378
378
  });
379
379
 
380
380
  if (selectedOption) {
381
- this.props.onChange('from', new Date(selectedOption.from.format('YYYY-MM-DD HH:mm:ss')));
382
- this.props.onChange('to', new Date(selectedOption.to.format('YYYY-MM-DD HH:mm:ss')));
381
+ this.props.onChange('from', selectedOption.from.toDate());
382
+ this.props.onChange('to', selectedOption.to.toDate());
383
383
  this.props.onChange('fromError', false);
384
384
  this.props.onChange('toError', false);
385
385
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "description": "React components that implement Google's Material Design.",
6
6
  "repository": {
7
7
  "type": "git",