ARIMA Yasuhiro <fit0298 / fitec.co.jp> wrote:
>Hi,,
>
>Kevin Smith <sent / qualitycode.com> wrote
>
>| Any hints?
>
>require 'parsedate'
>
>class Time
>  def Time.parse( timestr )
>    year, month, day, hour, min, sec, zone, wday = 
>      ParseDate.parsedate( timestr )
>    tm = Time.gm( year, month, day, hour, min, sec )
>    return tm  unless zone
>    return tm  if zone.to_i == 0
>
>    hour = zone[0,3].to_i * 3600
>    min  = zone[3,2].to_i * 60
>    ofs  = (hour + min)
>    return Time.at( tm.to_f - ofs )
>  end
>end

Thanks. This should work as long as the time zone 
is a number. But it won't work for "PST", "JST", 
etc. I'm still hoping to hear from anyone who can 
confirm or deny that the Time.utc method is not 
handling the zone parameter that is passed to 
it.

Kevin