I'm developing web app in codeigniter which has a heavy usage of date and time. What i need to know is who's timezone we need to set (i use configuration autoload to do it)? Mine or each user needs to set theirs? or server time zone (and find out from hostgator)?...
Asked
Active
Viewed 77 times
1 Answers
1
Use timezone based on user's location
in config file write
date_default_timezone_set('Europe/London');

Adarsh M Pallickal
- 813
- 3
- 16
- 37
-
1if i set date_default_timezone_set('Asia/Colombo');, will it automatically adjust itself if a london user comes in? – ZameerMoh Dec 26 '13 at 08:24
-
1that is not possible. We find the location using IP or something then set default timezone – Adarsh M Pallickal Dec 27 '13 at 09:27