Page 1 of 1

Add current time to Hesk homepage

Posted: Sun Feb 02, 2014 10:49 am
by tb1254
Script URL: http://www.3ldevelopment.com/support/
Version of script: 2.5.2
Hosting company: Hostmonster
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: current time, time zone

Write your message below:

All,

I often look at other help desks to see what I can add to improve my look,feel and FAQ etc.

I've recently found and used the following : http://www.easybiztools.com/support/

How can I add the clock facility to my Hesk homepage i.e (Time at our office now is: 19:45, Sun Feb 2, 2014 )? I'm guess js? However I wouldn't know where to start.

I also like the extra text under the banner (SUPPORT TICKET SYSTEM). Yet one thing at a time.

Thanks

W

Re: Add current time to Hesk homepage

Posted: Sun Feb 02, 2014 4:37 pm
by mkoch227
I'm not sure where you want to put the time, but you can toss in this PHP query and it should return the current time

Code: Select all

<?php
    $date = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
 echo $date->format('d-m-Y H:i:s');
?>
be sure to change

Code: Select all

Asia/Kolkata
to your current time zone.