Welcome Guest, Not a member yet? Register   Sign In
Multitimezone website
#1

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...
Reply


Messages In This Thread
Multitimezone website - by neuron - 02-25-2018, 12:31 PM
RE: Multitimezone website - by InsiteFX - 02-26-2018, 06:24 AM
RE: Multitimezone website - by neuron - 02-26-2018, 11:24 PM
RE: Multitimezone website - by InsiteFX - 02-27-2018, 04:20 AM
RE: Multitimezone website - by kilishan - 02-27-2018, 07:20 AM
RE: Multitimezone website - by neuron - 02-27-2018, 08:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB