@salesforcedevs/dx-components 0.54.1 → 0.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.54.1",
3
+ "version": "0.54.2",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -26,5 +26,5 @@
26
26
  "@types/lodash.get": "^4.4.6",
27
27
  "@types/vimeo__player": "^2.16.2"
28
28
  },
29
- "gitHead": "2261fe819c0a82d687f1fe0bb9fe2f7dd6e73161"
29
+ "gitHead": "c06230bbb3bb9e9a03d3712d3e9c5677a579e7a2"
30
30
  }
@@ -28,6 +28,11 @@ export default class FormattedDateTime extends LightningElement {
28
28
  }
29
29
 
30
30
  this._unformattedDate = new Date(value);
31
+
32
+ if (this._unformattedDate.toString() === "Invalid Date") {
33
+ // this is a fix for Safari since it doesn't support date strings with 'yyyy/mm/dd' patterns
34
+ this._unformattedDate = new Date(value.replace(/-/g, "/"));
35
+ }
31
36
  }
32
37
  get value() {
33
38
  const options = this.getOptions();