This project is archived and is in readonly mode.
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
-
Geoff Buesing January 7th, 2009 @ 06:34 AM
- State changed from new to wontfix
Easy enough to add custom formats in your app, so no need to add a specific format like this into core.
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>