This project is archived and is in readonly mode.

#1697 ✓wontfix
Erik Lindblad

Added :soap format to Time.to_formatted_s

Reported by Erik Lindblad | January 5th, 2009 @ 03:04 PM | in 2.x

When creating SOAP messages the recommended format to maximize interoperability is to use UTC time zone and include fractions of a second. This patch adds a :soap format to Time::DATE_FORMATS to allow the following:


time_with_microseconds.to_s(:soap) #=> "2005-02-21T17:44:30.582Z"

The Z at the end indicates UTC time.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages