@fy-/fws-vue 1.2.2 → 1.2.3

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.
@@ -81,9 +81,8 @@ const patchUser = async () => {
81
81
  // @ts-ignore
82
82
  data.Birthdate = new Date(birtdateAtUnixms).toISOString().split("T")[0];
83
83
  } catch (e) {
84
- const birtdateAtUnixms = new Date(birtdate).getTime();
85
84
  // @ts-ignore
86
- data.Birthdate = new Date(birtdateAtUnixms).toISOString().split("T")[0];
85
+ data.Birthdate = data.Birthdate.toISOString().split("T")[0];
87
86
  }
88
87
  // @ts-ignore
89
88
  const response = await rest("User/_Profile", "PATCH", data);
@@ -24,9 +24,8 @@ const props = withDefaults(
24
24
  const currentDate = new Date();
25
25
  const defaultDate = new Date(
26
26
  currentDate.setFullYear(currentDate.getFullYear() - 18),
27
- )
28
- .toISOString()
29
- .split("T")[0];
27
+ );
28
+
30
29
  const ageValidator = (value: any) => {
31
30
  const today = new Date();
32
31
  const birthDate = new Date(value);
@@ -52,8 +51,6 @@ watchEffect(() => {
52
51
  Gender: userData.value?.UserProfile?.Gender || "",
53
52
  Birthdate: userData.value?.UserProfile?.Birthdate
54
53
  ? new Date(userData.value?.UserProfile?.Birthdate.unixms)
55
- .toISOString()
56
- .split("T")[0]
57
54
  : defaultDate,
58
55
  AcceptedTerms: userData.value?.AcceptedTerms || true,
59
56
  };
@@ -93,9 +90,8 @@ const patchUser = async () => {
93
90
  // @ts-ignore
94
91
  data.Birthdate = new Date(birtdateAtUnixms).toISOString().split("T")[0];
95
92
  } catch (e) {
96
- const birtdateAtUnixms = new Date(birtdate).getTime();
97
93
  // @ts-ignore
98
- data.Birthdate = new Date(birtdateAtUnixms).toISOString().split("T")[0];
94
+ data.Birthdate = data.Birthdate.toISOString().split("T")[0];
99
95
  }
100
96
  const response = await rest("User/_ForceProfile", "PATCH", data);
101
97
  if (response && response.result == "success") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "1.2.02",
3
+ "version": "1.2.3",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {