Skip to content

Commit

Permalink
fix: expiration date show hard-coded date
Browse files Browse the repository at this point in the history
  • Loading branch information
jossef committed Dec 14, 2023
1 parent 40feaf7 commit 9e8223b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
{{ cardInfo.membership_year }}
</div>
<div class="app__vcard__card__info__expiration">
חברות בתוקף עד 31/10/{{ cardInfo.membership_year }}
חברות בתוקף עד {{ expirationDate }}
</div>
</div>
</div>
Expand Down Expand Up @@ -225,6 +225,13 @@ export default {
return true;
}
},
expirationDate(){
if (!this.cardInfo){
return '-'
}
return new Date(this.cardInfo.membership_expiration).toLocaleDateString("he-IL").replaceAll('.', '/')
},
isIOS() {
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
}
Expand Down

0 comments on commit 9e8223b

Please sign in to comment.