Andre_br has asked for the wisdom of the Perl Monks concerning the following question:
As I was having many nightmares because of the host I was using here in Brazil, I moved my website to a host in L.A., wich gives me 50 times more disk space and 30 times more traffic for the same fee (something hosts here in Brazil donīt even dream to offer, sadly).
Everything just like a fairy tale untill I asked Mr Server "Hey, man, What time is it?". The problem: Brazil is at GMT -3 and L.A. is in GMT -7, so Iīve got a little problem to solve about this virtual paradox, both in mysql and in Perl, as I have some cron routines that may generate bugs if I call them the wrong hour.
Can you point me something less dirty than doing it by hand, I mean, correcting every localtime(time) call? Also in mysql, I donīt know if I can set a separate timezone for my db.
Thanks a lot
André
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Timezone antidote
by Tanktalus (Canon) on Aug 31, 2005 at 20:56 UTC | |
|
Re: Timezone antidote
by cowboy (Friar) on Aug 31, 2005 at 20:59 UTC | |
|
Re: Timezone antidote
by lidden (Curate) on Aug 31, 2005 at 21:09 UTC | |
|
Re: Timezone antidote
by fauria (Deacon) on Aug 31, 2005 at 21:29 UTC | |
by Tanktalus (Canon) on Aug 31, 2005 at 21:40 UTC | |
by Andre_br (Pilgrim) on Sep 01, 2005 at 02:17 UTC | |
by hatter (Pilgrim) on Sep 01, 2005 at 12:00 UTC | |
by Andre_br (Pilgrim) on Sep 06, 2005 at 17:11 UTC | |
| |
by Tanktalus (Canon) on Sep 01, 2005 at 03:14 UTC |