Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14353

Multitimezone website

$
0
0
Hi,
This is first time I get project where I should consider multiple timezones. Although time precision is not critical in this project I want to build in a right way.

So far in my projects I handle time in following way:

1. in index.php I set 
PHP Code:
date_default_timezone_set('Europe/Istanbul'); 
as in Turkey time same every where within Turkey.
2. In in database I set time column as DATATIME type
3. and I set the value of the time columns with value from 
PHP Code:
$date['created_at'] = date((time(), 'Y-m-d hh:mm:ss'); 

And now I working on a project (Which give consultation service, also consultants will give appoitment for users for online conversation) that will have users from different countries. 
How should I handle  time here?


Thanks in advance...

Viewing all articles
Browse latest Browse all 14353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>