Hmmm, I will look into it. There was a problem in that the code that writes out the dates was not ensuring that the year field was padded out to four digits - that may be the problem you are seeing.
The fix is in cvs in XmlRpcValue.cpp if you want to try it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think that the code is working as intended here.
The value in the struct tm field tm_year seems to be consistent with what is in the XML. Let me know if you still have problems after getting the fix I mentioned above.
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Er, PHP/Apache still crashes horribly with that fix. I think you want to increment the tm.year field by 1900. Looking at all the other xml-rpc examples, it seems like years get returned as 2003, rather then 0103 (how you are returning it now). I think this won't break anyone else code (hopefully).
If not, no big deal...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think that you are returning back the wrong date...though I could be wrong.
in timeFromXml() I added this:
t.tm_year -= 1900;
to line 391
and in timeToXml() i change this:
t->tm_year,
to
t->tm_year + 1900,
I think this correct according too the spec. When I don't do that my php pages crash!
Hmmm, I will look into it. There was a problem in that the code that writes out the dates was not ensuring that the year field was padded out to four digits - that may be the problem you are seeing.
The fix is in cvs in XmlRpcValue.cpp if you want to try it.
I think that the code is working as intended here.
The value in the struct tm field tm_year seems to be consistent with what is in the XML. Let me know if you still have problems after getting the fix I mentioned above.
Chris
Er, PHP/Apache still crashes horribly with that fix. I think you want to increment the tm.year field by 1900. Looking at all the other xml-rpc examples, it seems like years get returned as 2003, rather then 0103 (how you are returning it now). I think this won't break anyone else code (hopefully).
If not, no big deal...
Yes, you are right, I completely misunderstood the problem. I will fix it as you indicated.