This project is archived and is in readonly mode.

#3741 ✓committed
Mauricio Eduardo Szabo

[PATCH] to_utc_offset_s misbehaviour if hour is < 0

Reported by Mauricio Eduardo Szabo | January 18th, 2010 @ 05:09 PM

For example, this works as expected:

-3600.to_utc_offset_s #Returns "-01:00"

But this don't:

-3599.to_utc_offset_s #Returns "+00:59", should be "-00:59"

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>

Referenced by

Pages