RE: bug with date_convert_universal()
"Angel Fradejas" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Oded,
Take a look at my posts about "timestamps with emi2" from January 14h. This
was corrected because date_convert_universal precisely assumed 1-12 input,
instead of the correct 0-11.
Also, taken from date.h
long month; /* 0-11 */
Hope this helps.
Angel Fradejas.
-----Mensaje original-----
De: [email protected] [mailto:[email protected]]En
nombre de Oded Arbel
Enviado el: lunes 11 de marzo de 2002 18:20
Para: Kannel-devel (E-mail)
Asunto: bug with date_convert_universal()
Hi list.
date_convert_universal() get a "universaltime" structure as input, which
its month member is defined as having a range of 0 to 11, but
date_convert_universal assumes that it will get the month as 1-12 - from
the code :
date += monthstart[t->month-1] * DAY;
--
Oded Arbel
m-Wise Inc.
[email protected]
I do not fear Satan half so much as I fear those who fear him.
-- Theresa of Avila