simple question how do i get the current time the app was run. basically i have mulitple users and i need to get the time relative to the current logged in users timezone. i read somewhere yii supports users localetime. so i guess im asking how do i make yii get the current users timestamp any ideas??
Page 1 of 1
app time
#2
Posted 14 May 2010 - 04:15 AM
Timezone information is not part of the request header. So all you know about your visitor is his IP. You could try to resolve that to a country and use a lookup table to find the corresponding timezone.
#3
Posted 14 May 2010 - 04:35 AM
Hi,
You might want to read more about GEOIP, which is a package that detect the user country.
You might want to read more about GEOIP, which is a package that detect the user country.
Share this topic:
Page 1 of 1

Help













