scripting / xml-rpc

XML-RPC client and server in JavaScript.
MIT License
61 stars 28 forks source link

Interop problems with dates #3

Open scripting opened 6 years ago

scripting commented 6 years ago

One of the things I'm learning is that there is are problems with date-time values.

The question is whether or not the date part of the date-time should have hyphens. The Frontier implementation does not. The example in the XML-RPC spec does not have hyphens.

But ISO 8601 seems to say they must be present.

The built-in JavaScript function includes the hyphens.

I don't have any other implementations that I can easily check against, so I don't know what offers the most interop with other XML-RPCs. For now I'm documenting the issue, and leaving the JavaScript implementation as it is, for now. This means in this area it does not interop with Frontier, in that Frontier will not understand the JS date-time values. Going in the other direction there is no problem, because I've included a workaround.