Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 6:18 PM, Karl DeSaulniers wrote: > On Oct 21, 2012, at 5:11 PM, tamouse mailing lists wrote: >> Using the standard labels in /usr/share/zoneinfo should be able to >> avoid having to keep track of who is and isn't in DST, *provided* you >> find a way to map the user's addres

Re: [PHP] Re: User Timezone

2012-10-21 Thread Karl DeSaulniers
On Oct 21, 2012, at 5:11 PM, tamouse mailing lists wrote: On Sun, Oct 21, 2012 at 7:30 AM, Matijn Woudt wrote: On Sun, Oct 21, 2012 at 12:01 PM, Maciek Sokolewicz wrote: On 21-10-2012 01:11, Karl DeSaulniers wrote: Thanks for the response. Yes, for the US I plan on calculating by state,

Re: [PHP] Re: User Timezone

2012-10-21 Thread Matijn Woudt
On Sun, Oct 21, 2012 at 1:12 PM, Ashley Sheridan wrote: > Don't most browsers include this information in the HTTP headers? Nope, you're probably confused with servers that return their time and date. - Matijn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 7:30 AM, Matijn Woudt wrote: > On Sun, Oct 21, 2012 at 12:01 PM, Maciek Sokolewicz > wrote: >> On 21-10-2012 01:11, Karl DeSaulniers wrote: > > Thanks for the response. Yes, for the US I plan on calculating by > state, but > this website is not geared to ju

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 6:12 AM, Ashley Sheridan wrote: > Don't most browsers include this information in the HTTP headers? Not that i have seen. Quick test using nc: Firefox: tamara@caesar:~$ nc -l 3000 GET / HTTP/1.1 Host: localhost:3000 User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:15

RES: [PHP] Re: User Timezone

2012-10-21 Thread Samuel Lopes Grigolato
DeSaulniers; php-general Assunto: Re: [PHP] Re: User Timezone On Sun, Oct 21, 2012 at 12:01 PM, Maciek Sokolewicz wrote: > On 21-10-2012 01:11, Karl DeSaulniers wrote: >>>> >>>> Thanks for the response. Yes, for the US I plan on calculating by >>>> state, but

Re: [PHP] Re: User Timezone

2012-10-21 Thread Matijn Woudt
On Sun, Oct 21, 2012 at 12:01 PM, Maciek Sokolewicz wrote: > On 21-10-2012 01:11, Karl DeSaulniers wrote: Thanks for the response. Yes, for the US I plan on calculating by state, but this website is not geared to just the US. So I am looking for a solution that lets me als

Re: [PHP] Re: User Timezone

2012-10-21 Thread Samuel Lopes Grigolato
Sorry if it's to dumb or hacky solution, but can't you just create a Date with JavaScript and send it with your request in a hidden field? You could guess the timezone with this date and the server's one. I don't know what you're going to do with this info, just be aware that if the users clock is

Re: [PHP] Re: User Timezone

2012-10-21 Thread Ashley Sheridan
Karl DeSaulniers wrote: > >On Oct 21, 2012, at 5:01 AM, Maciek Sokolewicz wrote: > >> On 21-10-2012 01:11, Karl DeSaulniers wrote: > Thanks for the response. Yes, for the US I plan on calculating by > state, but > this website is not geared to just the US. > So I am looking for

Re: [PHP] Re: User Timezone

2012-10-21 Thread Karl DeSaulniers
On Oct 21, 2012, at 5:01 AM, Maciek Sokolewicz wrote: On 21-10-2012 01:11, Karl DeSaulniers wrote: Thanks for the response. Yes, for the US I plan on calculating by state, but this website is not geared to just the US. So I am looking for a solution that lets me also calculate by country/regio

Re: [PHP] Re: User Timezone

2012-10-21 Thread Maciek Sokolewicz
On 21-10-2012 01:11, Karl DeSaulniers wrote: Thanks for the response. Yes, for the US I plan on calculating by state, but this website is not geared to just the US. So I am looking for a solution that lets me also calculate by country/region. Was looking on google and found geoip, but not sure if

Re: [PHP] Re: User Timezone

2012-10-20 Thread Karl DeSaulniers
On Oct 20, 2012, at 6:02 PM, Matijn Woudt wrote: On Sun, Oct 21, 2012 at 12:56 AM, Karl DeSaulniers > wrote: On Oct 20, 2012, at 7:23 AM, Maciek Sokolewicz wrote: On 20-10-2012 09:39, Karl DeSaulniers wrote: Hello all, Happy weekend. Hoping you can help me with an age old question. I am tr

Re: [PHP] Re: User Timezone

2012-10-20 Thread Matijn Woudt
On Sun, Oct 21, 2012 at 12:56 AM, Karl DeSaulniers wrote: > > On Oct 20, 2012, at 7:23 AM, Maciek Sokolewicz wrote: > >> On 20-10-2012 09:39, Karl DeSaulniers wrote: >>> >>> Hello all, >>> Happy weekend. Hoping you can help me with an age old question. >>> I am trying to get a users timezone for a

Re: RES: [PHP] Re: User Timezone

2012-10-20 Thread Karl DeSaulniers
Mensagem original- De: Maciek Sokolewicz [mailto:tula...@gmail.com] Em nome de Maciek Sokolewicz Enviada em: sábado, 20 de outubro de 2012 09:24 Para: Karl DeSaulniers Cc: php-general Assunto: [PHP] Re: User Timezone On 20-10-2012 09:39, Karl DeSaulniers wrote: Hello all, Happy weekend. Hoping you ca

[PHP] Re: User Timezone

2012-10-20 Thread Karl DeSaulniers
On Oct 20, 2012, at 7:23 AM, Maciek Sokolewicz wrote: On 20-10-2012 09:39, Karl DeSaulniers wrote: Hello all, Happy weekend. Hoping you can help me with an age old question. I am trying to get a users timezone for a purchase online. I know that php is not really able to get a timzone of a user

RES: [PHP] Re: User Timezone

2012-10-20 Thread Samuel Lopes Grigolato
ula...@gmail.com] Em nome de Maciek Sokolewicz Enviada em: sábado, 20 de outubro de 2012 09:24 Para: Karl DeSaulniers Cc: php-general Assunto: [PHP] Re: User Timezone On 20-10-2012 09:39, Karl DeSaulniers wrote: > Hello all, > Happy weekend. Hoping you can help me with an age old question. &g

[PHP] Re: User Timezone

2012-10-20 Thread Maciek Sokolewicz
On 20-10-2012 09:39, Karl DeSaulniers wrote: Hello all, Happy weekend. Hoping you can help me with an age old question. I am trying to get a users timezone for a purchase online. I know that php is not really able to get a timzone of a user because its a server side execution with the date functi