@fy-/fws-vue 1.0.4 → 1.0.5

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.
@@ -30,7 +30,9 @@ const eventBus = useEventBus();
30
30
  const currentDate = new Date();
31
31
  const defaultDate = new Date(
32
32
  currentDate.setFullYear(currentDate.getFullYear() - 18),
33
- );
33
+ )
34
+ .toISOString()
35
+ .split("T")[0];
34
36
  const state = reactive({
35
37
  userData: {
36
38
  Username: userData.value?.UserProfile?.Username || "",
@@ -49,6 +51,8 @@ watchEffect(() => {
49
51
  Bio: userData.value?.UserProfile?.Bio || "",
50
52
  Birthdate: userData.value?.UserProfile?.Birthdate
51
53
  ? new Date(userData.value?.UserProfile?.Birthdate.unixms)
54
+ .toISOString()
55
+ .split("T")[0]
52
56
  : defaultDate,
53
57
  PublicGender: userData.value?.UserProfile?.PublicGender || false,
54
58
  PublicBio: userData.value?.UserProfile?.PublicBio || false,
@@ -24,7 +24,9 @@ const props = withDefaults(
24
24
  const currentDate = new Date();
25
25
  const defaultDate = new Date(
26
26
  currentDate.setFullYear(currentDate.getFullYear() - 18),
27
- );
27
+ )
28
+ .toISOString()
29
+ .split("T")[0];
28
30
  const ageValidator = (value: any) => {
29
31
  const today = new Date();
30
32
  const birthDate = new Date(value);
@@ -50,6 +52,8 @@ watchEffect(() => {
50
52
  Gender: userData.value?.UserProfile?.Gender || "",
51
53
  Birthdate: userData.value?.UserProfile?.Birthdate
52
54
  ? new Date(userData.value?.UserProfile?.Birthdate.unixms)
55
+ .toISOString()
56
+ .split("T")[0]
53
57
  : defaultDate,
54
58
  AcceptedTerms: userData.value?.AcceptedTerms || true,
55
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {