[#10193] String.ord — David Flanagan <david@...>

Hi,

41 messages 2007/02/05
[#10197] Re: String.ord — Yukihiro Matsumoto <matz@...> 2007/02/06

Hi,

[#10198] Re: String.ord — David Flanagan <david@...> 2007/02/06

Yukihiro Matsumoto wrote:

[#10199] Re: String.ord — Daniel Berger <djberg96@...> 2007/02/06

David Flanagan wrote:

[#10200] Re: String.ord — David Flanagan <david@...> 2007/02/06

Daniel Berger wrote:

[#10208] Re: String.ord — "Nikolai Weibull" <now@...> 2007/02/06

On 2/6/07, David Flanagan <david@davidflanagan.com> wrote:

[#10213] Re: String.ord — David Flanagan <david@...> 2007/02/06

Nikolai Weibull wrote:

[#10215] Re: String.ord — "Nikolai Weibull" <now@...> 2007/02/06

On 2/6/07, David Flanagan <david@davidflanagan.com> wrote:

[#10216] Re: String.ord — David Flanagan <david@...> 2007/02/07

Nikolai Weibull wrote:

[#10288] Socket library should support abstract unix sockets — <noreply@...>

Bugs item #8597, was opened at 2007-02-13 16:10

12 messages 2007/02/13

[#10321] File.basename fails on Windows root paths — <noreply@...>

Bugs item #8676, was opened at 2007-02-15 10:09

11 messages 2007/02/15

[#10323] Trouble with xmlrpc — James Edward Gray II <james@...>

Some of the Ruby code used by TextMate makes use of xmlrpc/

31 messages 2007/02/15
[#10324] Re: Trouble with xmlrpc — "Berger, Daniel" <Daniel.Berger@...> 2007/02/15

> -----Original Message-----

[#10326] Re: Trouble with xmlrpc — James Edward Gray II <james@...> 2007/02/15

On Feb 15, 2007, at 1:29 PM, Berger, Daniel wrote:

[#10342] Re: Trouble with xmlrpc — James Edward Gray II <james@...> 2007/02/16

While I am complaining about xmlrpc, we have another issue. It's

[#10343] Re: Trouble with xmlrpc — Alex Young <alex@...> 2007/02/16

James Edward Gray II wrote:

[#10344] Re: Trouble with xmlrpc — James Edward Gray II <james@...> 2007/02/16

On Feb 16, 2007, at 12:08 PM, Alex Young wrote:

Re: Trouble with xmlrpc

From: Alex Young <alex@...>
Date: 2007-02-16 22:27:18 UTC
List: ruby-core #10347
James Edward Gray II wrote:
> On Feb 16, 2007, at 12:08 PM, Alex Young wrote:
> 
>> James Edward Gray II wrote:
>>> While I am complaining about xmlrpc, we have another issue.  It's 
>>> shown in this paste:
>>> http://pastie.textmate.org/40836
>>> Would a patch be accepted to make these changes?
>>> James Edward Gray II
>> Why is it a problem that the time isn't converted to UTC?
> 
> Fair warning:  this issue is certainly debatable.
> 
> Currently we send the time without any time-zone information.  It's hard 
> to see this as useful in anyway.  There is no way to add a time-zone to 
> the iso 8601 field the spec calls for either.  So basically I view it 
> that we are sending a useless field.
> 
> Sending a UTC date, on the other hand, seems to have some chance of 
> being useful.  If the server is going to assume anything, that seems the 
> most likely choice.
Really?  I'd have expected the reverse - given the freedom in the spec, 
server implementors (especially of smaller, in-house services) are 
likely not to bother changing the timezone assumptions away from 
whatever the local timezone they're in is.

> Sadly the spec (http://www.xmlrpc.com/spec) is beyond useless when it 
> comes to addressing this issue:
> 
> "* What timezone should be assumed for the dateTime.iso8601 type? UTC? 
> localtime?
> 
> Don't assume a timezone. It should be specified by the server in its 
> documentation what assumptions it makes about timezones."
> 
> I consider it insane that such a widely used spec says anything like 
> that to begin with, 
Quite.  On the other hand, all they're doing is saying "Timezone info is 
application-level data.  Handle it yourself."  Converting the timezone 
without warning pulls it back into the protocol, when the protocol has 
explicitly rejected it.

> but (much worse) I have no idea how to properly 
> implement that.  So, instead of teaching xmlrpc how to read randomly 
> formatted documents and interpret arbitrary time-zone rules from servers 
> that don't generally provide either, I'm voting we chicken out and send 
> UTC.  ;)
How would we opt out of that when we know the server's set to GMT-5, 
say?  Pre-shift the time value in the opposite direction?  Or would we 
be able to configure the timezone in an XMLRPC::Client object such that 
it defaults to UTC?

Maybe I'm missing something here.  Does xmlrpc/server convert to and 
from UTC?  Does the xmlrpc-c server or client?

I guess what I'm looking for is some sort of precedent, because this 
sounds like a quick way to confuse a lot of people...

-- 
Alex

In This Thread