User password management. Question about the "chage" command
I am practicing for the RHCSA exam but i ran into a problem that i am unsure of why it occurs. When i try to set an expiration date for a user account using chage like this:
chage -E 2026-10-25 exampleuser
I always appear to get the wrong date in the "Account expires" field when i verify:
chage -l exampleuser
Last password change : Jul 07, 2026
Password expires : never
Password inactive : never
Account expires : Oct 24, 2026
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
I set it to 25th but when verifying it is set to the 24th and it always ends up off by 1 day like this no matter the date. Does anyone know why this happens?
Some additional information that i doubt matters is that i am in UTC+2 and system's time settings seem completely fine. I am worried that this could lead to a point deduction on the exam.