Issue with hasChanged

Issue #374 resolved
Adolfo Casari created an issue

Hi Fidel,

I have a validator that checks 2 date fields (date picker):

changed1.png

but even when the field "Inicio Plan Construccion" was not changed in the transition screen, the validator fails:

changed2.png

The date fields at the momment of the transition are:

changed3.png

Comments (4)

  1. Adolfo Casari reporter

    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() ??

  2. Fidel Castro Armario 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?

  3. Adolfo Casari 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.

  4. Log in to comment