Add current time to Hesk homepage

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
tb1254
Posts: 14
Joined: Thu Nov 12, 2009 9:12 am

Add current time to Hesk homepage

Post 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
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Add current time to Hesk homepage

Post 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.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Post Reply