Kayako logo

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
iesenov Offline
New Member
 
Posts: 5
Join Date: May 2009
Location: Sofia, Bulgaria
current user time variable for templates - 10-06-2009, 06:54 AM

I would like to add the current user time in the header just before <{$date}>.

I need the current user time - consistent with the user time zone.
Our users are all over the world.
I would like the users to see the current time in the same format as they see the tickets time.


support ticket id:NPP-880082
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 5,247
Join Date: Aug 2006
Location: Mumbai, India
10-06-2009, 12:55 PM

You can add it simply by using the PHP date() function in the template.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/ - NEW SKIN ADDED!!
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
iesenov Offline
New Member
 
Posts: 5
Join Date: May 2009
Location: Sofia, Bulgaria
10-06-2009, 01:23 PM

I can only invoke server's time with following PHP code:

<?php
$time = date("h:i",time());
echo 'Server time and date: '.$time;
?>&nbsp;

but I need the current user time - consistent with the user time zone.
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Support Hours & current office time dongan How do I? 1 21-02-2009 09:36 AM
custom email_autoresponder for first time user registeration & tickets through email mrshoaib Developers & Code 0 18-06-2008 12:20 PM
Difference in Admin and Staff User time zones. michelvana SupportSuite, eSupport and LiveResponse 2 23-05-2008 07:11 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78