osTicket Version: v1.12 (a076918) — Up to date
Web Server Software: Apache/2
MySQL Version: 5.5.41
PHP Version: 7.1.24

  1. First I made a new installation off osTicket version v1.12
  2. In the 'Ticket Details' form I made the field: 'verzonden' with the Type: 'Date and time'
  3. Config Settings of 'verzonden': only agents can view and edit this field.
  4. I go to the 'agent panel' and open de default ticket: #407853 ('osTicket Installed!')
  5. Now I pick a date from the past in the field 'verzonden', let's say: 4/2/2019 and save the ticket.

Everything seems fine.

  1. In the ticket thread of ticket #407853 I can update other fields without the date in 'verzonden' been changed, that's oke.
  2. But if I press the 'Edit' button in the ticket thread and start changing the information of one or more fields and then press the 'Save' button, the existing and unchanged date ( 4/2/2019 ) in 'verzonden' field changes directly to the current date.
    I think that's not supposed to happen!?

I don't want the date automaticly been set to the current date, every time I make and save a change to one of the other fields in the form.

I came accross this same problem in version V1.11 stable.

What I'am doing wrong? Can someone please help me?

Dav1d changed the title to Date in Date and time field changes when saving changes made in other fields.

I've asked the devs to take a look at this thread.

    a month later

    ntozier

    Is there now more information about this error?

    I cannot imagine that others will not be bothered by this.

    for your information. It seems that if you press the edit button, all date fields get the current date, just like the due date. Is there a link with the due date in the date picker?

    Awaiting a response

    @Dav1d

    This is a known bug we are looking into. The ticket was created in a timezone that's different from your Agent profile timezone and when you edit the entire ticket any date/time field will be updated to today's date.

    Cheers.

      KevinTheJedi

      Thanks,

      Can you keep me informed about the developments regarding this bug?

      Is there a ticket / discussion about this that I can follow?
      Or possibly code that I can adjust to temporarily fix the problem for now?

      @Dav1d

      Unfortunately, I'm extremely busy and don't have much time to update threads, etc...you can track our Github for new pull requests/commits. You'll be able to tell by the title or description if a fix has been pushed for your specific issue.

      There is no temporary fix other than maybe setting your Agent profile timezone and system timezone to the same.

      Cheers.

        KevinTheJedi

        Hi Kevin,

        I understand it's extremely busy.

        I tried setting the user-, agent profile and system timezone to the same (Europe / Berlin).
        Unfortunately, It doen't solve the issue.
        All the date/time fields still change to the current date when the agent edit the ticket.

        I searched the pull requests/commits on Github as you suggested. and could not find the error yet.
        So I created a new issue and will follow developments there.

        Thanks in advance.

        Cheers.

        3 months later

        Same issue here. We have a form with multiple date fields. All fields will be placed with current date or with a date in one year future:

        https://i.imgur.com/uoiMnAU.png

        This issue start with update to 1.12.2

        We reduces PHP Version from 7.3.9 to 7.2.2 but with no luck. Tried to set fields manually by hand and set date. That works well. Otherwise we get all fields with 0. Or with date picker i get DD.MM.YY not DD.MM.YYYY. Hope there where a solution soon, 'cause its unusable at the moment.

        3 months later

        KevinTheJedi

        Hi Kevin,

        Is the fix for this issue ongoing?

        I am facing the same problem with v1.12.3 but on GitHub the issue #4915 is still open.

        @rolfalbers

        Yes, if the issue is still open and you see no pull request mentioned then it's still being worked on.

        Cheers.

        3 months later

        I had the same issue. After changing code in "include/class.forms.php" it fixed it when an agent changed something but when a user changed their own ticket it still changed all date on the help topic. I fixed that issue by going into settings and changing the "date/time format" to advanced instead of local defaults. Not sure why that would fix it but hopefully this helps someone.

        Write a Reply...