RE: [PATCH] SMPP validity
"Oded Arbel" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
> -----Original Message----- > From: Andreas Fink [mailto:[email protected]] > > > > -----Original Message----- > >> From: Vibhu Mohindra [mailto:[email protected]] > > > >> > Why would I want to handle years and days when I only > need the hour > >> > difference ? > >> > >> OK, here's why looking only at hours and minutes isn't > >> enough. A country > >> which is +12 GMT will be identified at 11am as being -12 GMT. > >> Past noon > >> it will be correctly identified as +12 GMT. Our > normalising version > >> which adds/subtracts 24 hours doesn't work for such a place. > > > >Ahmm... GMT+12 and GMT-12 is the same timezone. it's just a matter of > >how you look at it. both are valid. it's like saying GMT+0 > and GMT-0 are > >different time zones. > > This is WRONG! > Someone living in GMT+12 has a different date from the person in > GMT-12 even they share the same time. Ok. then get the timezone from the locale using localtime() and the global variable timezone. -- Oded Arbel m-Wise mobile solutions [email protected] +972-9-9581711 (116) +972-67-340014 ::.. If you lie to the compiler, it will get its revenge. -- Henry Spencer