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
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
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...
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');
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...