In extending #363682: User account update rule doesn't include Profile updates I tested for a date field also used in code for #658504: Profile fields conditions and actions I noticed a profile date field is not expanded into year, month and dag parts as ie user last login does.

[account_unchanged:user-last-login-ww] User's last login week (two digits with leading zeros)
[account_unchanged:user-last-login-yy] User's last login year (two digit)
[account_unchanged:user-last-login-yyyy] User's last login year (four digit)

This is how a date is tokenized by token_profile

[account_unchanged:user:profile_birth] Birthday

It would be nice for token_profile to have this feature added making #658504: Profile fields conditions and actions kinda obsolete.

Comments

fizk’s picture

Alright, I'll try to add this functionality to token_profile.