There's more than one way to do things | |
PerlMonks |
Timezone antidoteby Andre_br (Pilgrim) |
on Aug 31, 2005 at 20:48 UTC ( [id://488220]=perlquestion: print w/replies, xml ) | Need Help?? |
Andre_br has asked for the wisdom of the Perl Monks concerning the following question:
Hello my loyal code friends,
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é
Back to
Seekers of Perl Wisdom
|
|