Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11455 (new defect)

Opened 8 months ago

TzTime has :normal as the default to_s format, when it should be :default

Reported by: turnip Assigned to: core
Priority: normal Milestone: 2.x
Component: Plugins Version: edge
Severity: normal Keywords: tztime
Cc:

Description

The ActiveSupport::CoreExtensions::Time::Conversions#to_formatted_s method (which is aliased as to_s) defaults its format parameter to :default, but TzTime overwrites the to_s method and sets the default format to :normal. Presumably this incompatibility is not intentional.