• Resolved giovanni256

    (@giovanni256)


    Hi.
    I’m using the osTicket 1.9.5 version and the latest version of this plugin.

    My GMT is +1 but the server gives me a time in GMT -5. So I have all times 6 hours off.

    For example: I send a ticket on 13:18:02 (local time).
    The server says “2015-01-11 07:18:02”.

    Now, if I reply by the osTicket Admin Panel the time of the reply is correct but if I reply by the osTicket Plugin (Wp-Admin Panel) the time is 6 hours off.

    Now you could say “Ye, so reply by the osTicket Admin Panel” but the problem is that the WordPress users see their replies time 6 hours off, and me too!

    So, how can I change the GTM/Local time of the plugin?
    And how can I change the date format?

    The plugin is really amazing, but I have this big problem… If I will not resolve this, I can’t use the plugin… :/

    Thanks a lot!

    https://ww.wp.xz.cn/plugins/key4ce-osticket-bridge/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author m.tiggelaar

    (@mtiggelaar)

    Hello,

    Currently there’s no actual configuration (in gui/ options) for it.
    Only way to adjust the time would be directly in the code at:

    Includes:
    contactticketmail.php
    newticketmail.php
    postreplymail.php

    each of them have 1 or 2 “Date” codes which looks like:

    $las_msg = date("Y-m-d, g:i:s", strtotime("-5 hour"));
    $cre = date("Y-m-d, g:i:s", strtotime("-5 hour"));

    I hope we can add in a feature in the near future that either picks this setting up from osTicket or lets people configure it from within our plugin, but for now only way would be to manually adjust it.

    Regards,
    Marco

    Thread Starter giovanni256

    (@giovanni256)

    Thanks a lot, Marco.

    Now the users can see their messages with the correct time.
    But the staff replies (in the page of the plugin and also in the Agent Panel of osTicket) are sent with GMT 0… even if I change the GMT in Admin Panel and in My Preferences from GMT +1 to GMT +2 (to adjust the staff replies in the ticket plugin page):

    – In the osTicket Agent Panel I see the customers replies with plus 1 hour than my GMT, and the staff replies with the correct time.

    – In the ticket plugin page I see the customer replies with the correct time, and the staff replies with 1 hour off.

    Help me! >.<

    Plugin Author m.tiggelaar

    (@mtiggelaar)

    Ah i see.

    go to dir admin:
    adminticketemail.php
    ost-postreplymail.php

    They got similar date fields.
    You can adjust them aswell.

    Seems like a rather easy feature so i will try and push it together with the Multi Language feature scheduled within the next 2 weeks πŸ™‚

    Regards,
    Marco

    Thread Starter giovanni256

    (@giovanni256)

    Thanks, Marco.

    I don’t resolved the problem but I think that there is an error in the osTicket Admin Panel…

    In the osTicket Agent Panel if I reply like an Agent, I see my reply time 1 hour off. Maybe the problem is this (?)

    If I can help you with the Italian translation, I’m here πŸ™‚

    Plugin Author m.tiggelaar

    (@mtiggelaar)

    hmm.. will have to do some research on that one.
    i’m currently still running 1.9.4
    planning to check out the bug fixes etc in 1.9.5 upcoming week my self.

    and thanks! will be able to use that real soon πŸ™‚

    Just made the dutch translation my self, just implementing it in to the codes it self so they pick up on language strings as wordpress intended (it’s this upcoming week(s) work).

    After that any translation would be great! (luckely it’s pretty simple so not that much text to translate)

    Thread Starter giovanni256

    (@giovanni256)

    So when do you think that the next version of the plugin will be released?

    If you will correct this “time problem”, I can wait 1 or 2 weeks.

    If you need more time, I have to adjust this problem…

    Plugin Author m.tiggelaar

    (@mtiggelaar)

    Well i will have to check with my other dev.
    (he will be back tomorrow).

    I assume 1 – 2 weeks but need to make sure (sometimes some task looks easy but eats up alot of time).

    Either way i would expect a detailed reply of the issue shortly.
    additionally if you want/ need you can mail me your FTP / WordPress details for us to fix it for you shortly (without making the plugin it self dynamic yet) (m.tiggelaar (a t) key4ce.com)

    Thread Starter giovanni256

    (@giovanni256)

    I sent you an e-mail with all details that you need.

    Reply by e-mail if you have all things that you need πŸ™‚

    Plugin Author m.tiggelaar

    (@mtiggelaar)

    I saw and gave a reply.

    Dev won’t be back till tomorrow tho, but we will sort it shortly. (24/48 hours tops normally) πŸ™‚

    Plugin Author m.tiggelaar

    (@mtiggelaar)

    Hello,

    A very late update but in version 1.3.0:
    The time setting is now based up on the time set in osticket
    so our plugin should always pick up the correct time equal to osticket it self.

    Regards,
    Marco

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Wrong Time on Tickets’ is closed to new replies.