| Summary: | The age returned is wrong. | ||
|---|---|---|---|
| Product: | Coupon Redemption System | Reporter: | YAU Chi Wai <chiwaiyau7-c> |
| Component: | User Management | Assignee: | YAU Chi Wai <chiwaiyau7-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | --- | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Deadline: | 2023-11-24 | ||
|
Description
YAU Chi Wai
2023-11-22 14:47:16 HKT
(In reply to YAU Chi Wai from comment #0) > I entered an age of 18 before my birthday's (15 Nov) this year when I create > my user account (14 Nov). On 16 Nov, I checked my profile again and it > showed 18 again which is not automatically updated according to my date of > birth provided. The problem is caused by the attribute stored the age that inputted by the user instead of calculated by the date of birth. To solve this bug, the attribute is removed and a method getAge is implemented to calculate the age. |