Issue with hasChanged
Hi Fidel,
I have a validator that checks 2 date fields (date picker):
but even when the field "Inicio Plan Construccion" was not changed in the transition screen, the validator fails:
The date fields at the momment of the transition are:
Comments (4)
-
reporter -
repo owner Hi Adolfo,
I can't reproduce your problem. I have used 2 users with different timezones (10 hours apart) and the value entered by one user is considered the same by function hasChanged().
If you use the same user for setting the field and executing the validator, does it work correctly?
Which timezones are the 2 users you are using for reproducing the error?
Which version of JIRA are you using?
-
reporter I am closing this issue. It's a bug on this side caused by an issue with JIRA and a timezone change. It showed up in dates ranging from May 16th to May30th only.
Thanks for your support.
-
reporter - changed status to resolved
- Log in to comment
I think the issue is related to a problem with a timezone change:
1) hasChanged takes into account the TZ info in the date? If this is so, that will explain why hasChanged complains, since the date was saved with a different timezone than the date that is in the screen. 2) Does it make any difference if I put %{XXX} or {XXX} for dates in hasChanged() ??