We help IT Professionals succeed at work.
Get Started

How to get client time zone to server from browser for showing based on that.

700 Views
Last Modified: 2012-05-12
the web app runs joomla on apache server running Mysql as dB.
the server timezone is set to UTC and time values are too saved in UTC in dB.

a registered user in the site can store his events details in calendar in his account.
this details will be available to others on the site for them to interact.

 the problem is that the user recieves the details in UTC for himself and others too. even if the user gives the time zone details at the time of registration, it will become static. for eg if the user changes time zone during travel, the content will be available for the old time zone only.

if i use JS to change the content on load, there are issues related tooltip and calendar positioning as the calendar is processed by PHP not JS. so i need the user time zone value in server for PHP to process the object variable.

If there is a way using server request or some other means to sort this problem out, it will be really helpful.

thanks in advance, i guess i have not missed out anything in explaining about issue.
Comment
Watch Question
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE