Changing Timezone

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
johnny-legend
Posts: 23
Joined: Tue Jan 03, 2006 7:53 pm

Changing Timezone

Post by johnny-legend »

Is it possible to change the timezone?

Currentyl helpdesk is running 6 hours behind my timezone.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Interesting question. Hesk uses the time that is set on your MySQL server. To change that you need to modify files

submit_ticket.php
reply_ticket.php
admin_reply_ticket.php

Inside these files find this code:

Code: Select all

NOW()
If your time is behind add:

Code: Select all

DATE_ADD(NOW(),INTERVAL 6 HOUR)
If it is ahead add:

Code: Select all

DATE_SUB(NOW(),INTERVAL 6 HOUR)
Haven't tested it, but should work.

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
johnny-legend
Posts: 23
Joined: Tue Jan 03, 2006 7:53 pm

Post by johnny-legend »

Thank you!


That modifications works fine for me.
janssuhhh
Posts: 7
Joined: Fri Jun 03, 2005 1:34 pm

Post by janssuhhh »

This works for me too
Post Reply